From 26cc34f1571b355ff95e804f3b94321a8e881afb Mon Sep 17 00:00:00 2001 From: David Greenman Date: Tue, 5 Mar 1996 13:07:04 +0000 Subject: [PATCH] Use '-fstype ufs' rather than '-fstype local' on the find command to avoid special non-filesystems like procfs from being included. --- usr.bin/locate/locate/updatedb.csh | 2 +- usr.bin/locate/locate/updatedb.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/locate/locate/updatedb.csh b/usr.bin/locate/locate/updatedb.csh index fef2d6d51a8c..155dd753f9b0 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 bcd34565e81e..af9eb47c143a 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