mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 04:43:32 +00:00
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:
parent
e5009da0f9
commit
26cc34f157
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14388
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user