diff options
author | dg <dg@FreeBSD.org> | 1996-03-05 13:07:04 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1996-03-05 13:07:04 +0000 |
commit | 2a29cb99a44c1ef6f781ab2d28e7f7052538247a (patch) | |
tree | 3142991c6f97b134e91cd284d8bf84365b993c80 | |
parent | 4a4eedf18c504396660d8c59f813138a1069de04 (diff) | |
download | FreeBSD-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.
-rw-r--r-- | usr.bin/locate/locate/updatedb.csh | 2 | ||||
-rw-r--r-- | 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 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 |