mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 22:51:22 +00:00
libgksu: fix sudo references (close #10524)
gksudo wasn't working because libgksu used wrong sudo file which doesn't have setuid bit Committer: it isn't optimal, as it won't work on non-NixOS. I've got a patch for it to use relative paths, but apparently something's wrong with it and I don't want to kill much more time with it ATM.
This commit is contained in:
parent
9800862397
commit
f47103e015
@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
# Fix some binary paths
|
# Fix some binary paths
|
||||||
sed -i -e 's|/usr/bin/xauth|${xauth}/bin/xauth|g' libgksu/gksu-run-helper.c libgksu/libgksu.c
|
sed -i -e 's|/usr/bin/xauth|${xauth}/bin/xauth|g' libgksu/gksu-run-helper.c libgksu/libgksu.c
|
||||||
sed -i -e 's|/usr/bin/sudo|${sudo}/bin/sudo|g' libgksu/libgksu.c
|
sed -i -e 's|/usr/bin/sudo|/var/setuid-wrappers/sudo|g' libgksu/libgksu.c
|
||||||
sed -i -e 's|/bin/su\([^d]\)|/var/setuid-wrappers/su\1|g' libgksu/libgksu.c
|
sed -i -e 's|/bin/su\([^d]\)|/var/setuid-wrappers/su\1|g' libgksu/libgksu.c
|
||||||
|
|
||||||
touch NEWS README
|
touch NEWS README
|
||||||
|
Loading…
Reference in New Issue
Block a user