libcap: use full path to bash
This commit is contained in:
parent
0d9b2c4b16
commit
116fb2a610
@ -34,11 +34,8 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
# use relative bash path
|
# use full path to bash
|
||||||
substituteInPlace progs/capsh.c --replace "/bin/bash" "bash"
|
substituteInPlace progs/capsh.c --replace "/bin/bash" "${stdenv.shell}"
|
||||||
|
|
||||||
# ensure capsh can find bash in $PATH
|
|
||||||
substituteInPlace progs/capsh.c --replace execve execvpe
|
|
||||||
|
|
||||||
# set prefixes
|
# set prefixes
|
||||||
substituteInPlace Make.Rules \
|
substituteInPlace Make.Rules \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user