diff options
-rw-r--r-- | etc/periodic/weekly/340.noid | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/periodic/weekly/340.noid b/etc/periodic/weekly/340.noid index 7b56f01..11a5f53 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 |