diff --git a/usr.bin/locate/locate/updatedb.csh b/usr.bin/locate/locate/updatedb.csh index 44446e68c210..2ea72e1ade88 100644 --- a/usr.bin/locate/locate/updatedb.csh +++ b/usr.bin/locate/locate/updatedb.csh @@ -56,7 +56,8 @@ set errs = $TMPDIR/locate.errs.$$ # search locally or everything # find ${SRCHPATHS} -print | \ -find ${SRCHPATHS} ! -fstype local -a -prune -o -print | \ +find ${SRCHPATHS} \( ! -fstype local -o -fstype fdesc -o -fstype kernfs \) -a \ + -prune -o -print | \ tr '/' '\001' | \ (sort -T /var/tmp -f; echo $status > $errs) | tr '\001' '/' > $filelist