aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-09-09 00:03:23 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-09-09 00:03:23 +0000
commit35ae2b3e59d1e4c13b21992e37a7a116d48a64b6 (patch)
tree96acf3da664af9469ddb380890b8dfc4b89c70be /src
parent1a1dd358ce967c606e35062264e2989cb615d1c6 (diff)
downloadmsec-35ae2b3e59d1e4c13b21992e37a7a116d48a64b6.tar
msec-35ae2b3e59d1e4c13b21992e37a7a116d48a64b6.tar.gz
msec-35ae2b3e59d1e4c13b21992e37a7a116d48a64b6.tar.bz2
msec-35ae2b3e59d1e4c13b21992e37a7a116d48a64b6.tar.xz
msec-35ae2b3e59d1e4c13b21992e37a7a116d48a64b6.zip
do not report permission changes on character/block devices (#53424)
Diffstat (limited to 'src')
-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);
/*