diff options
author | Armijn Hemel <armijn@gpl-violations.org> | 2005-08-23 12:42:20 +0000 |
---|---|---|
committer | Armijn Hemel <armijn@gpl-violations.org> | 2005-08-23 12:42:20 +0000 |
commit | e4ab68cc391142995a786143c8160cb2c0230ec5 (patch) | |
tree | f2d09131164ccf6cdeac7686860f2db8e88608f3 /pkgs/tools/misc | |
parent | 3210b87fc380e65529f9d05d71eebaee3fcbfbea (diff) | |
download | nixlib-e4ab68cc391142995a786143c8160cb2c0230ec5.tar nixlib-e4ab68cc391142995a786143c8160cb2c0230ec5.tar.gz nixlib-e4ab68cc391142995a786143c8160cb2c0230ec5.tar.bz2 nixlib-e4ab68cc391142995a786143c8160cb2c0230ec5.tar.lz nixlib-e4ab68cc391142995a786143c8160cb2c0230ec5.tar.xz nixlib-e4ab68cc391142995a786143c8160cb2c0230ec5.tar.zst nixlib-e4ab68cc391142995a786143c8160cb2c0230ec5.zip |
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
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/findutils/default.nix | 1 | ||||
-rw-r--r-- | pkgs/tools/misc/findutils/findutils-path.patch | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/tools/misc/findutils/default.nix b/pkgs/tools/misc/findutils/default.nix index 7f8f67627de9..c49d08535e56 100644 --- a/pkgs/tools/misc/findutils/default.nix +++ b/pkgs/tools/misc/findutils/default.nix @@ -7,4 +7,5 @@ stdenv.mkDerivation { md5 = "7c8e12165b221dd67a19c00d780437a4"; }; buildInputs = [coreutils]; + patches = [./findutils-path.patch]; } diff --git a/pkgs/tools/misc/findutils/findutils-path.patch b/pkgs/tools/misc/findutils/findutils-path.patch new file mode 100644 index 000000000000..be8d85be3033 --- /dev/null +++ b/pkgs/tools/misc/findutils/findutils-path.patch @@ -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"} + |