From 90f2f188bbd0e8b842bcec0ba158ac5353d21b26 Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Mon, 4 Feb 2002 03:26:43 +0000 Subject: don't report /tmp and /var/tmp as word writable dirs (it's normal) --- cron-sh/security.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cron-sh/security.sh') diff --git a/cron-sh/security.sh b/cron-sh/security.sh index 6cc6b79..4cb0d12 100755 --- a/cron-sh/security.sh +++ b/cron-sh/security.sh @@ -108,7 +108,7 @@ if [[ -f ${SUID_GROUP_TODAY} ]]; then fi if [[ -f ${WRITEABLE_TODAY} ]]; then - sort < ${WRITEABLE_TODAY} > ${WRITEABLE_TODAY}.tmp + sort < ${WRITEABLE_TODAY} | egrep -v '^(/var)?/tmp$' > ${WRITEABLE_TODAY}.tmp mv -f ${WRITEABLE_TODAY}.tmp ${WRITEABLE_TODAY} fi -- cgit v1.2.1