1--- locate/updatedb.sh.orig 2019-06-23 09:00:40 UTC 2+++ locate/updatedb.sh 3@@ -292,7 +292,7 @@ cd "$changeto" 4 if test -n "$SEARCHPATHS"; then 5 if [ "$LOCALUSER" != "" ]; then 6 # : A1 7- su $LOCALUSER `select_shell $LOCALUSER` -c \ 8+ su -m $LOCALUSER -c \ 9 "$find $SEARCHPATHS $FINDOPTIONS \ 10 \\( $prunefs_exp \ 11 -type d -regex '$PRUNEREGEX' \\) -prune -o $print_option" 12@@ -308,7 +308,7 @@ if test -n "$NETPATHS"; then 13 myuid=`getuid` 14 if [ "$myuid" = 0 ]; then 15 # : A3 16- su $NETUSER `select_shell $NETUSER` -c \ 17+ su -m $NETUSER -c \ 18 "$find $NETPATHS $FINDOPTIONS \\( -type d -regex '$PRUNEREGEX' -prune \\) -o $print_option" || 19 exit $? 20 else 21