1747513894
This fixes an issue where gksudo would successfully authenticate the user, but fail to run the requested command. This was caused by gksudo forking a new PTY, meaning that different TTY was used for the "sudo -v" command and subsequent "sudo -n ..." command. Whilst this used to work, newer versions of sudo used per TTY authentication caching. Patch taken from Arch Linux: https://aur.archlinux.org/packages/libgksu/ Also fixed: - Made Nautilus plugin optional, so gksu can be installed without GNOME - Added license details, pet portlint - Tidied patches: move path fixes into port Makefile
10 lines
286 B
C
10 lines
286 B
C
--- libgksu/gksu-run-helper.c.o 2011-04-12 16:47:38.000000000 +0000
|
|
+++ libgksu/gksu-run-helper.c 2011-04-12 16:49:14.000000000 +0000
|
|
@@ -110,6 +110,7 @@
|
|
return 1;
|
|
}
|
|
|
|
+ sleep(2);
|
|
fprintf (stderr, "gksu: waiting\n");
|
|
|
|
xauth_file = g_strdup_printf ("%s/.Xauthority",
|