libcap: use full path to bash

This commit is contained in:
Izorkin 2021-01-12 11:23:32 +03:00
parent 0d9b2c4b16
commit 116fb2a610
No known key found for this signature in database
GPG key ID: 1436C1B3F3679F09

View file

@ -34,11 +34,8 @@ stdenv.mkDerivation rec {
];
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
# use full path to bash
substituteInPlace progs/capsh.c --replace "/bin/bash" "${stdenv.shell}"
# set prefixes
substituteInPlace Make.Rules \