diff options
-rwxr-xr-x | cron-sh/scripts/01_files.sh | 2 | ||||
-rw-r--r-- | src/msec_find/find.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cron-sh/scripts/01_files.sh b/cron-sh/scripts/01_files.sh index 6aa7add..c7bb8ad 100755 --- a/cron-sh/scripts/01_files.sh +++ b/cron-sh/scripts/01_files.sh @@ -77,7 +77,7 @@ fi if [[ -f ${WRITABLE_TODAY} ]]; then Filter ${WRITABLE_TODAY} CHECK_WRITABLE - sort < ${WRITABLE_TODAY} | egrep -v '^(/var)?/tmp$' > ${WRITABLE_TODAY}.tmp + sort < ${WRITABLE_TODAY} > ${WRITABLE_TODAY}.tmp mv -f ${WRITABLE_TODAY}.tmp ${WRITABLE_TODAY} fi 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); /* |