You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
|
21 years ago
|
Index: locate/updatedb.sh
|
||
|
|
--- locate/updatedb.sh.orig 2005-02-11 08:51:54 +0100
|
||
|
|
+++ locate/updatedb.sh 2005-02-11 08:52:57 +0100
|
||
|
|
@@ -166,7 +166,7 @@
|
||
|
|
if test -n "$SEARCHPATHS"; then
|
||
|
|
if [ "$LOCALUSER" != "" ]; then
|
||
|
|
# : A1
|
||
|
|
- su $LOCALUSER -s $SHELL -c \
|
||
|
|
+ su $LOCALUSER -c \
|
||
|
|
"$find $SEARCHPATHS $FINDOPTIONS \
|
||
|
|
\\( $prunefs_exp \
|
||
|
|
-type d -regex '$PRUNEREGEX' \\) -prune -o $print_option"
|
||
|
|
@@ -182,7 +182,7 @@
|
||
|
|
myuid=`getuid`
|
||
|
|
if [ "$myuid" = 0 ]; then
|
||
|
|
# : A3
|
||
|
|
- su $NETUSER -s $SHELL -c \
|
||
|
|
+ su $NETUSER -c \
|
||
|
|
"$find $NETPATHS $FINDOPTIONS \\( -type d -regex '$PRUNEREGEX' -prune \\) -o $print_option" ||
|
||
|
|
exit $?
|
||
|
|
else
|
||
|
|
@@ -236,7 +236,7 @@
|
||
|
|
if test -n "$SEARCHPATHS"; then
|
||
|
|
if [ "$LOCALUSER" != "" ]; then
|
||
|
|
# : A5
|
||
|
|
- su $LOCALUSER -s $SHELL -c \
|
||
|
|
+ su $LOCALUSER -c \
|
||
|
|
"$find $SEARCHPATHS $FINDOPTIONS \
|
||
|
|
\( $prunefs_exp \
|
||
|
|
-type d -regex '$PRUNEREGEX' \) -prune -o $print_option" || exit $?
|
||
|
|
@@ -252,7 +252,7 @@
|
||
|
|
myuid=`getuid`
|
||
|
|
if [ "$myuid" = 0 ]; then
|
||
|
|
# : A7
|
||
|
|
- su $NETUSER -s $SHELL -c \
|
||
|
|
+ su $NETUSER -c \
|
||
|
|
"$find $NETPATHS $FINDOPTIONS \\( -type d -regex '$PRUNEREGEX' -prune \\) -o $print_option" ||
|
||
|
|
exit $?
|
||
|
|
else
|