diff options
author | Andreas Hasenack <andreas@mandriva.com> | 2008-01-11 13:35:58 +0000 |
---|---|---|
committer | Andreas Hasenack <andreas@mandriva.com> | 2008-01-11 13:35:58 +0000 |
commit | 1f952890b68b15a091a864187cb3d7336426cc51 (patch) | |
tree | 9dfafe01da3921b5d07bfc20aee2ced8e6146655 /src/msec_find | |
parent | b1379f78e1d5b9b24ced3f69036bd35553ab2980 (diff) | |
download | msec-1f952890b68b15a091a864187cb3d7336426cc51.tar msec-1f952890b68b15a091a864187cb3d7336426cc51.tar.gz msec-1f952890b68b15a091a864187cb3d7336426cc51.tar.bz2 msec-1f952890b68b15a091a864187cb3d7336426cc51.tar.xz msec-1f952890b68b15a091a864187cb3d7336426cc51.zip |
- exclude pipes and sockets from world-writable report (#27530)
Diffstat (limited to 'src/msec_find')
-rw-r--r-- | src/msec_find/find.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msec_find/find.c b/src/msec_find/find.c index a9e96aa..0920b73 100644 --- a/src/msec_find/find.c +++ b/src/msec_find/find.c @@ -114,7 +114,7 @@ static int traverse(const char *file, const struct stat *sb, int flag, struct FT /* * Is world writable check. */ - if (sb->st_mode & 0002) + if ((sb->st_mode & 0002) && !(S_ISSOCK(sb->st_mode)) && !(S_ISFIFO(sb->st_mode))) fprintf(writable_fd, "%s\n", file); /* |