2012-02-13 14:37:28 +01:00
|
|
|
Index: doc/find.texi
|
|
|
|
===================================================================
|
|
|
|
--- doc/find.texi.orig 2012-02-13 14:27:58.223123360 +0100
|
|
|
|
+++ doc/find.texi 2012-02-13 14:27:58.231123165 +0100
|
|
|
|
@@ -3486,7 +3486,7 @@ Default is none.
|
2006-12-19 00:15:57 +01:00
|
|
|
@item --prunepaths='@var{path}@dots{}'
|
|
|
|
Directories to omit from the database, which would otherwise be
|
|
|
|
included. The environment variable @code{PRUNEPATHS} also sets this
|
|
|
|
-value. Default is @file{/tmp /usr/tmp /var/tmp /afs}. The paths are
|
|
|
|
+value. Default is @file{/tmp /usr/tmp /var/tmp /afs /var/spool}. The paths are
|
|
|
|
used as regular expressions (with @code{find ... -regex}, so you need
|
|
|
|
to specify these paths in the same way that @code{find} will encounter
|
|
|
|
them. This means for example that the paths must not include trailing
|
2012-02-13 14:37:28 +01:00
|
|
|
Index: locate/updatedb.1
|
|
|
|
===================================================================
|
|
|
|
--- locate/updatedb.1.orig 2011-04-04 00:53:12.000000000 +0200
|
|
|
|
+++ locate/updatedb.1 2012-02-13 14:27:58.232123141 +0100
|
|
|
|
@@ -75,8 +75,7 @@ Default is \fInfs NFS proc\fP.
|
2006-12-19 00:15:57 +01:00
|
|
|
.TP
|
|
|
|
.B \-\-output=\fIdbfile\fP
|
|
|
|
The database file to build.
|
|
|
|
-Default is system-dependent. In Debian GNU/Linux, the default
|
|
|
|
-is /var/cache/locate/locatedb.
|
2012-01-18 06:03:10 +01:00
|
|
|
+Default is /var/lib/locatedb.
|
2006-12-19 00:15:57 +01:00
|
|
|
.TP
|
|
|
|
.B \-\-localuser=\fIuser\fP
|
|
|
|
The user to search non-network directories as, using \fBsu\fP(1).
|
2012-02-13 14:37:28 +01:00
|
|
|
@@ -85,7 +84,7 @@ You can also use the environment variabl
|
2006-12-19 00:15:57 +01:00
|
|
|
.TP
|
|
|
|
.B \-\-netuser=\fIuser\fP
|
|
|
|
The user to search network directories as, using \fBsu\fP(1).
|
|
|
|
-Default is \fBdaemon\fP.
|
|
|
|
+Default is \fBnobody\fP.
|
|
|
|
You can also use the environment variable \fBNETUSER\fP to set this user.
|
|
|
|
.TP
|
|
|
|
.B \-\-old\-format
|
2012-02-13 14:37:28 +01:00
|
|
|
Index: locate/updatedb.sh
|
|
|
|
===================================================================
|
|
|
|
--- locate/updatedb.sh.orig 2011-04-04 00:53:12.000000000 +0200
|
|
|
|
+++ locate/updatedb.sh 2012-02-13 14:28:48.445898801 +0100
|
|
|
|
@@ -158,7 +158,7 @@ select_shell() {
|
2006-12-19 00:15:57 +01:00
|
|
|
: ${NETPATHS=}
|
|
|
|
|
|
|
|
# Directories to not put in the database, which would otherwise be.
|
2008-03-26 16:09:55 +01:00
|
|
|
-: ${PRUNEPATHS="/tmp /usr/tmp /var/tmp /afs /amd /sfs /proc"}
|
|
|
|
+: ${PRUNEPATHS="/tmp /usr/tmp /var/tmp /afs /amd /sfs /proc /var/spool"}
|
2006-12-19 00:15:57 +01:00
|
|
|
|
2012-01-18 06:03:10 +01:00
|
|
|
# Trailing slashes result in regex items that are never matched, which
|
|
|
|
# is not what the user will expect. Therefore we now reject such
|
2012-02-13 14:37:28 +01:00
|
|
|
@@ -188,7 +188,7 @@ fi
|
2006-12-19 00:15:57 +01:00
|
|
|
export TMPDIR
|
|
|
|
|
|
|
|
# The user to search network directories as.
|
|
|
|
-: ${NETUSER=daemon}
|
|
|
|
+: ${NETUSER=nobody}
|
|
|
|
|
|
|
|
# The directory containing the subprograms.
|
|
|
|
if test -n "$LIBEXECDIR" ; then
|
2012-02-13 14:37:28 +01:00
|
|
|
@@ -228,7 +228,7 @@ done
|
2006-12-19 00:15:57 +01:00
|
|
|
|
|
|
|
PATH=/bin:/usr/bin:${BINDIR}; export PATH
|
|
|
|
|
2010-03-12 16:45:17 +01:00
|
|
|
-: ${PRUNEFS="nfs NFS proc afs smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sysfs shfs"}
|
|
|
|
+: ${PRUNEFS="nfs NFS proc afs smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sysfs shfs cifs 9P"}
|
2006-12-19 00:15:57 +01:00
|
|
|
|
|
|
|
if test -n "$PRUNEFS"; then
|
2012-02-13 14:37:28 +01:00
|
|
|
prunefs_exp=`echo $PRUNEFS |sed -e 's/\([^ ][^ ]*\)/-o -fstype \1/g' \
|
|
|
|
@@ -252,13 +252,12 @@ if test -n "$SEARCHPATHS"; then
|
|
|
|
# : A1
|
2008-09-05 20:08:03 +02:00
|
|
|
su $LOCALUSER `select_shell $LOCALUSER` -c \
|
|
|
|
"$find $SEARCHPATHS $FINDOPTIONS \
|
2012-02-13 14:37:28 +01:00
|
|
|
- \\( $prunefs_exp \
|
2008-09-05 20:08:03 +02:00
|
|
|
- -type d -regex '$PRUNEREGEX' \\) -prune -o $print_option"
|
|
|
|
+ -type d \\( $prunefs_exp -regex '$PRUNEREGEX' \\) -prune \
|
|
|
|
+ -o $print_option"
|
|
|
|
else
|
|
|
|
# : A2
|
|
|
|
$find $SEARCHPATHS $FINDOPTIONS \
|
2012-02-13 14:37:28 +01:00
|
|
|
- \( $prunefs_exp \
|
2008-09-05 20:08:03 +02:00
|
|
|
- -type d -regex "$PRUNEREGEX" \) -prune -o $print_option
|
|
|
|
+ -type d \( $prunefs_exp -regex "$PRUNEREGEX" \) -prune -o $print_option
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2012-02-13 14:37:28 +01:00
|
|
|
@@ -322,12 +321,14 @@ if test -n "$SEARCHPATHS"; then
|
2008-09-05 20:08:03 +02:00
|
|
|
su $LOCALUSER `select_shell $LOCALUSER` -c \
|
|
|
|
"$find $SEARCHPATHS $FINDOPTIONS \
|
2012-01-18 06:03:10 +01:00
|
|
|
\( $prunefs_exp \
|
2008-09-05 20:08:03 +02:00
|
|
|
- -type d -regex '$PRUNEREGEX' \) -prune -o $print_option" || exit $?
|
|
|
|
+ -type d \( $prunefs_exp -regex '$PRUNEREGEX' \) -prune \
|
|
|
|
+ -o $print_option" || exit $?
|
|
|
|
else
|
|
|
|
# : A6
|
|
|
|
$find $SEARCHPATHS $FINDOPTIONS \
|
2012-01-18 06:03:10 +01:00
|
|
|
\( $prunefs_exp \
|
2008-09-05 20:08:03 +02:00
|
|
|
- -type d -regex "$PRUNEREGEX" \) -prune -o $print_option || exit $?
|
|
|
|
+ -type d \( $prunefs_exp -regex "$PRUNEREGEX" \) -prune \
|
|
|
|
+ -o $print_option || exit $?
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|