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
@ -57,7 +57,7 @@ set errs = $TMPDIR/locate.errs.$$
|
|||||||
|
|
||||||
# search locally or everything
|
# search locally or everything
|
||||||
# find ${SRCHPATHS} -print | \
|
# find ${SRCHPATHS} -print | \
|
||||||
find ${SRCHPATHS} \! -fstype local -prune -or -print | \
|
find ${SRCHPATHS} \! -fstype ufs -prune -or -print | \
|
||||||
tr '/' '\001' | \
|
tr '/' '\001' | \
|
||||||
(sort -T $TMPDIR -f; echo $status > $errs) | tr '\001' '/' > $filelist
|
(sort -T $TMPDIR -f; echo $status > $errs) | tr '\001' '/' > $filelist
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ ERRS="$TMPDIR/locate.errs.$$"
|
|||||||
|
|
||||||
# search locally or everything
|
# search locally or everything
|
||||||
# find ${SRCHPATHS} -print | \
|
# find ${SRCHPATHS} -print | \
|
||||||
find ${SRCHPATHS} ! -fstype local -prune -or -print | \
|
find ${SRCHPATHS} ! -fstype ufs -prune -or -print | \
|
||||||
tr '/' '\001' | \
|
tr '/' '\001' | \
|
||||||
(sort -T $TMPDIR -f; echo $? > $ERRS) | tr '\001' '/' > $FILELIST
|
(sort -T $TMPDIR -f; echo $? > $ERRS) | tr '\001' '/' > $FILELIST
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user