aboutsummaryrefslogtreecommitdiffstats
path: root/src/msec_find
diff options
context:
space:
mode:
authorAndreas Hasenack <andreas@mandriva.com>2008-01-11 13:28:21 +0000
committerAndreas Hasenack <andreas@mandriva.com>2008-01-11 13:28:21 +0000
commit8008f5d72be144a46b1cb48613e0dc785aee1aad (patch)
treed7513d2f40034e50be709e8b1a0cebd455adb4e9 /src/msec_find
parent9501f9cc00da922dfc0c71a2d94c578df9cd8e84 (diff)
downloadmsec-8008f5d72be144a46b1cb48613e0dc785aee1aad.tar
msec-8008f5d72be144a46b1cb48613e0dc785aee1aad.tar.gz
msec-8008f5d72be144a46b1cb48613e0dc785aee1aad.tar.bz2
msec-8008f5d72be144a46b1cb48613e0dc785aee1aad.tar.xz
msec-8008f5d72be144a46b1cb48613e0dc785aee1aad.zip
- properly dereference symlinks when checking for remote filesystem (#14387)
Diffstat (limited to 'src/msec_find')
-rw-r--r--src/msec_find/find.c2
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);
/*