Truly limit the path to local filesystems.

This commit is contained in:
Doug Barton 2001-05-31 09:53:53 +00:00
parent 18fbb861ab
commit 311176d1c5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77517

View File

@ -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