kov changed libgksu/trunk/ChangeLog, libgksu/trunk/libgksu/libgksu.c

Gustavo Noronha kov at alioth.debian.org
Wed May 28 00:07:15 UTC 2008


Mensagem de log: 
accepted patch by Ben Hutchings <ben at decadent.org.uk> to also disable
nonblocking I/O when no password is asked (Debian bug #463709)


-----


Modified: libgksu/trunk/ChangeLog
===================================================================
--- libgksu/trunk/ChangeLog	2008-05-27 23:46:08 UTC (rev 819)
+++ libgksu/trunk/ChangeLog	2008-05-28 00:07:15 UTC (rev 820)
@@ -1,5 +1,9 @@
 2008-05-27  Gustavo Noronha Silva  <kov at debian.org>
 
+	* libgksu/libgksu.c (gksu_sudo_full): accepted patch by Ben
+	Hutchings <ben at decadent.org.uk> to also disable nonblocking I/O
+	when no password is asked (Debian bug #463709)
+
 	* configure.ac: - remove \n from the test code used to test for
 	the presence of the -version-script linker option; that was
 	causing the test to fail

Modified: libgksu/trunk/libgksu/libgksu.c
===================================================================
--- libgksu/trunk/libgksu/libgksu.c	2008-05-27 23:46:08 UTC (rev 819)
+++ libgksu/trunk/libgksu/libgksu.c	2008-05-28 00:07:15 UTC (rev 820)
@@ -2681,6 +2681,9 @@
 	  if (context->debug)
 	    fprintf (stderr, "No password prompt found; we'll assume we don't need a password.\n");
 
+          /* turn NONBLOCK off, also if have no prompt */
+          fcntl(parent_pipe[0], F_SETFL, fcntl(parent_pipe[0], F_GETFL) & ~O_NONBLOCK);
+
 	  should_display = gconf_client_get_bool (context->gconf_client,
 						  BASE_PATH "display-no-pass-info", NULL);
 




More information about the gksu-commits mailing list