From 311176d1c5a3f8afb8a47c4f06a2929e34c255a7 Mon Sep 17 00:00:00 2001 From: Doug Barton Date: Thu, 31 May 2001 09:53:53 +0000 Subject: [PATCH] Truly limit the path to local filesystems. --- etc/periodic/weekly/340.noid | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/etc/periodic/weekly/340.noid b/etc/periodic/weekly/340.noid index 7b56f019a40e..11a5f53ea25d 100644 --- a/etc/periodic/weekly/340.noid +++ b/etc/periodic/weekly/340.noid @@ -16,10 +16,12 @@ case "$weekly_noid_enable" in echo "" echo "Check for files with an unknown user or group:" - rc=$(find -H ${weekly_noid_dirs:-/} -fstype local \ + rc=$(find -H ${weekly_noid_dirs:-/} \ + \( ! -fstype local -prune -or -name \* \) -and \ \( -nogroup -o -nouser \) -print | sed 's/^/ /' | tee /dev/stderr | wc -l) - [ $rc -gt 1 ] && rc=1;; + [ $rc -gt 1 ] && rc=1 + ;; *) rc=0;; esac