summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1996-03-05 13:07:04 +0000
committerdg <dg@FreeBSD.org>1996-03-05 13:07:04 +0000
commit2a29cb99a44c1ef6f781ab2d28e7f7052538247a (patch)
tree3142991c6f97b134e91cd284d8bf84365b993c80 /usr.bin
parent4a4eedf18c504396660d8c59f813138a1069de04 (diff)
downloadFreeBSD-src-2a29cb99a44c1ef6f781ab2d28e7f7052538247a.zip
FreeBSD-src-2a29cb99a44c1ef6f781ab2d28e7f7052538247a.tar.gz
Use '-fstype ufs' rather than '-fstype local' on the find command to avoid
special non-filesystems like procfs from being included.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/locate/locate/updatedb.csh2
-rw-r--r--usr.bin/locate/locate/updatedb.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/locate/locate/updatedb.csh b/usr.bin/locate/locate/updatedb.csh
index fef2d6d..155dd75 100644
--- a/usr.bin/locate/locate/updatedb.csh
+++ b/usr.bin/locate/locate/updatedb.csh
@@ -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
diff --git a/usr.bin/locate/locate/updatedb.sh b/usr.bin/locate/locate/updatedb.sh
index bcd3456..af9eb47 100644
--- a/usr.bin/locate/locate/updatedb.sh
+++ b/usr.bin/locate/locate/updatedb.sh
@@ -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
OpenPOWER on IntegriCloud