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

Gustavo Noronha kov at costa.debian.org
Tue Sep 13 01:39:20 UTC 2005


Mensagem de log: 
	* gksu/gksu.c:
	- add another hack for the -- symbol to work correctly so
	  you can call "gksu -- commands and its arguments"



-----


Modified: gksu/trunk/ChangeLog
===================================================================
--- gksu/trunk/ChangeLog	2005-09-12 20:32:39 UTC (rev 433)
+++ gksu/trunk/ChangeLog	2005-09-13 01:39:19 UTC (rev 434)
@@ -1,3 +1,9 @@
+2005-09-12  Gustavo Noronha Silva  <kov at debian.org>
+
+	* gksu/gksu.c:
+	- add another hack for the -- symbol to work correctly so
+	  you can call "gksu -- commands and its arguments"
+
 2005-09-10  Gustavo Noronha Silva  <kov at debian.org>
 
 	* gksu/gksu.c:

Modified: gksu/trunk/gksu/gksu.c
===================================================================
--- gksu/trunk/gksu/gksu.c	2005-09-12 20:32:39 UTC (rev 433)
+++ gksu/trunk/gksu/gksu.c	2005-09-13 01:39:19 UTC (rev 434)
@@ -1052,6 +1052,12 @@
     gchar *tmp = NULL;
     gint i = 0;
 
+    if (!strncmp ("--", command, 2))
+      {
+	g_free (command);
+	command = g_strdup ("");
+      }
+
     for (i = optind + 1; i < newargc; i++)
       {
   	tmp = g_strconcat (command, " '", newargv[i], "'", NULL);




More information about the gksu-commits mailing list