summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Youngman <jay@gnu.org>2011-05-24 01:59:17 +0100
committerJames Youngman <jay@gnu.org>2011-05-24 01:59:17 +0100
commit737271852a335e5e7f1963271767e3c9e18ff62c (patch)
tree1a52a4e109b2228d7644cdab4070a571fdc83b7f
parent804ff7b90e71af1660c0b71be495c2551795cea9 (diff)
downloadfindutils-737271852a335e5e7f1963271767e3c9e18ff62c.tar.gz
Fix Savannah bug #33384.
* locate/updatedb.sh: Don't reset $PATH, because the hard-coded value we were using isn't guaranteed to contain all the utilities (for example rm, chmod and so on) we would like to use. * NEWS: Mention this bugfix.
-rw-r--r--ChangeLog8
-rw-r--r--NEWS2
-rw-r--r--locate/updatedb.sh2
3 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c8097786..bc89b8e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-24 James Youngman <jay@gnu.org>
+
+ Fix Savannah bug #33384.
+ * locate/updatedb.sh: Don't reset $PATH, because the hard-coded
+ value we were using isn't guaranteed to contain all the utilities
+ (for example rm, chmod and so on) we would like to use.
+ * NEWS: Mention this bugfix.
+
2011-05-22 James Youngman <jay@gnu.org>
Don't assume that "echo" lives in /bin.
diff --git a/NEWS b/NEWS
index 9ce7689e..ee0792f9 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,8 @@ installed, whichever is appropriate.
** Bug Fixes
+#33384: If rm/chmod etc. are not in /bin or /usr/bin, updatedb fails
+
#18227: find -ls does not display device major/minor numbers.
#29698: Correct and clarify documentation of xargs -d option
diff --git a/locate/updatedb.sh b/locate/updatedb.sh
index 7828b645..94757023 100644
--- a/locate/updatedb.sh
+++ b/locate/updatedb.sh
@@ -246,8 +246,6 @@ do
done
-PATH=/bin:/usr/bin:${BINDIR}; export PATH
-
: ${PRUNEFS="nfs NFS proc afs smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sysfs shfs"}
if test -n "$PRUNEFS"; then