From 1f952890b68b15a091a864187cb3d7336426cc51 Mon Sep 17 00:00:00 2001 From: Andreas Hasenack Date: Fri, 11 Jan 2008 13:35:58 +0000 Subject: - exclude pipes and sockets from world-writable report (#27530) --- src/msec_find/find.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/msec_find') 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); /* -- cgit v1.2.1