From 04264a85de43e5cc0ef5f4c7113e0979bc397a53 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Wed, 9 Sep 2009 00:04:28 +0000 Subject: added support for msec exceptions --- cron-sh/functions.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cron-sh/functions.sh') diff --git a/cron-sh/functions.sh b/cron-sh/functions.sh index cedd4c1..af08ad4 100644 --- a/cron-sh/functions.sh +++ b/cron-sh/functions.sh @@ -69,7 +69,8 @@ Count() { Filter() { # filters output according to defined rules - RULE="$1" + FILE="$1" + RULE="$2" exceptions=/etc/security/msec/exceptions if [ ! -s "$exceptions" -o "a$RULE" = "a" ]; then @@ -83,7 +84,8 @@ Filter() { done FILTER="sed $EXCEPTIONS" fi - $FILTER + $FILTER < $FILE > ${FILE}.tmp + mv -f ${FILE}.tmp $FILE } -- cgit v1.2.1