Follow-up Comment #2, bug #19374 (project findutils):
Here is a patch:
--- updatedb.org 2009-01-27 13:29:28.575086300 +0100
+++ updatedb 2009-02-09 10:19:41.132505500 +0100
@@ -163,7 +163,7 @@
# Trailing slashes result in regex items that are never matched, which
# is not what the user will expect. Therefore we now reject such
# constructs.
-for p in $PRUNEPATHS; do
+for p in "$PRUNEPATHS"; do
case "$p" in
/*/) echo "$0: $p: pruned paths should not contain trailing
slashes" >&2
exit 1
@@ -172,7 +172,7 @@
# The same, in the form of a regex that find can use.
test -z "$PRUNEREGEX" &&
- PRUNEREGEX=`echo $PRUNEPATHS|sed -e 's,^,\(^,' -e 's, ,$\)\|\(^,g' -e
's,$,$\),'`
+ PRUNEREGEX=`echo "$PRUNEPATHS"|sed -e 's,^,\(^,' -e 's, ,$\)\|\(^,g' -e
's,$,$\),'`
# The database file to build.
: ${LOCATE_DB=/var/locatedb}
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?19374>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/