lol

libcap_progs: fix bash path

* in progs/capsh.c is the bash path hardcoded to '/bin/bash'.
* this fix removes the absolute path und use 'execvpe' to call 'bash'.

j-keck 73ec7f24 236f7fd2

+5 -2
+5 -2
pkgs/os-specific/linux/libcap/progs.nix
··· 10 10 buildInputs = [ libcap ]; 11 11 12 12 prePatch = '' 13 - BASH=$(type -tp bash) 14 - substituteInPlace progs/capsh.c --replace "/bin/bash" "$BASH" 13 + # use relative bash path 14 + substituteInPlace progs/capsh.c --replace "/bin/bash" "bash" 15 + 16 + # ensure capsh can find bash in $PATH 17 + substituteInPlace progs/capsh.c --replace execve execvpe 15 18 ''; 16 19 17 20 preConfigure = "cd progs";