aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/msec_find/find.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/msec_find/find.c b/src/msec_find/find.c
index 27c72f7..55a0d03 100644
--- a/src/msec_find/find.c
+++ b/src/msec_find/find.c
@@ -114,7 +114,8 @@ 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)))
+ 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)))
fprintf(writable_fd, "%s\n", file);
/*