add a patch which adds $PATH to the search path of updatedb. updatedb had the PATH set hard, probably because of security reasons.

svn path=/nixpkgs/trunk/; revision=3666
This commit is contained in:
Armijn Hemel 2005-08-23 12:42:20 +00:00
parent 3210b87fc3
commit e4ab68cc39
2 changed files with 13 additions and 0 deletions

View File

@ -7,4 +7,5 @@ stdenv.mkDerivation {
md5 = "7c8e12165b221dd67a19c00d780437a4";
};
buildInputs = [coreutils];
patches = [./findutils-path.patch];
}

View File

@ -0,0 +1,12 @@
diff -ruN findutils-4.2.20/locate/updatedb.sh findutils-4.2.20.new/locate/updatedb.sh
--- findutils-4.2.20/locate/updatedb.sh 2005-01-24 17:12:35.000000000 +0100
+++ findutils-4.2.20.new/locate/updatedb.sh 2005-08-23 14:37:10.000000000 +0200
@@ -141,7 +141,7 @@
: ${code:=${LIBEXECDIR}/@code@}
-PATH=/bin:/usr/bin:${BINDIR}; export PATH
+PATH=/bin:/usr/bin:${BINDIR}:${PATH}; export PATH
: ${PRUNEFS="nfs NFS proc afs proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sysfs shfs"}