Merge pull request #6109 from j-keck/libcap_progs
libcap_progs: fix bash path
This commit is contained in:
commit
003896dfe7
@ -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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user