Merge pull request #6109 from j-keck/libcap_progs

libcap_progs: fix bash path
This commit is contained in:
Peter Simons 2015-02-03 11:17:14 +01:00
commit 003896dfe7

View file

@ -9,6 +9,14 @@ stdenv.mkDerivation rec {
buildInputs = [ libcap ]; buildInputs = [ libcap ];
prePatch = ''
# use relative bash path
substituteInPlace progs/capsh.c --replace "/bin/bash" "bash"
# ensure capsh can find bash in $PATH
substituteInPlace progs/capsh.c --replace execve execvpe
'';
preConfigure = "cd progs"; preConfigure = "cd progs";
installFlags = "RAISE_SETFCAP=no"; installFlags = "RAISE_SETFCAP=no";