Truly limit the path to local filesystems.
This commit is contained in:
parent
18fbb861ab
commit
311176d1c5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user