diff options
Diffstat (limited to 'cron-sh')
-rw-r--r-- | cron-sh/functions.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cron-sh/functions.sh b/cron-sh/functions.sh index 9555033..4be3f7f 100644 --- a/cron-sh/functions.sh +++ b/cron-sh/functions.sh @@ -73,6 +73,11 @@ Filter() { RULE="$2" exceptions=/etc/security/msec/exceptions + if [ ! -f "$FILE" ]; then + # file not found - probably test was not run + return + fi + if [ ! -s "$exceptions" -o "a$RULE" = "a" ]; then FILTER="cat" else |