Use '-fstype ufs' rather than '-fstype local' on the find command to avoid

special non-filesystems like procfs from being included.
This commit is contained in:
David Greenman 1996-03-05 13:07:04 +00:00
parent e5009da0f9
commit 26cc34f157
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14388
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ set errs = $TMPDIR/locate.errs.$$
# search locally or everything
# find ${SRCHPATHS} -print | \
find ${SRCHPATHS} \! -fstype local -prune -or -print | \
find ${SRCHPATHS} \! -fstype ufs -prune -or -print | \
tr '/' '\001' | \
(sort -T $TMPDIR -f; echo $status > $errs) | tr '\001' '/' > $filelist

View File

@ -60,7 +60,7 @@ ERRS="$TMPDIR/locate.errs.$$"
# search locally or everything
# find ${SRCHPATHS} -print | \
find ${SRCHPATHS} ! -fstype local -prune -or -print | \
find ${SRCHPATHS} ! -fstype ufs -prune -or -print | \
tr '/' '\001' | \
(sort -T $TMPDIR -f; echo $? > $ERRS) | tr '\001' '/' > $FILELIST