aboutsummaryrefslogtreecommitdiffstats
path: root/src/msec_find/find.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/msec_find/find.c')
-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 a4ecff7..a2c90ef 100644
--- a/src/msec_find/find.c
+++ b/src/msec_find/find.c
@@ -117,7 +117,7 @@ static int traverse(const char *file, const struct stat *sb, int flag, struct FT
* Is world writable check.
*/
if ((sb->st_mode & 0002) && !(S_ISSOCK(sb->st_mode)) && !(S_ISFIFO(sb->st_mode))
- && !(S_ISCHR(sb->st_mode)) && !(S_ISBLK(sb->st_mode)))
+ && !(S_ISCHR(sb->st_mode)) && !(S_ISBLK(sb->st_mode)) && !((sb->st_mode & S_ISVTX) == S_ISVTX))
fprintf(writable_fd, "%s\n", file);
/*