[Setup-tool-hackers] Patch to xst-su




This is a patch to xst-tool.c and xst-su.[hc], and I'd just like you to
take a look at it and tell if you see anything misterious.

Greetings,
Arturo

Index: xst-su.c
===================================================================
RCS file: /cvs/gnome/ximian-setup-tools/src/common/xst-su.c,v
retrieving revision 1.10
diff -r1.10 xst-su.c
88c88
< exec_su (gchar *exec_path, gchar *user, gchar *pwd)
---
> exec_su (int argc, char *argv[], gchar *user, gchar *pwd)
92c92,93
< 	int t_fd;
---
> 	int t_fd, i;
> 	GString *str;
93a95
> #if 0
94a97,106
> #endif
>
> 	str = g_string_new (argv[0]);
> 	for (i = 1; i < argc; i++) {
> 		g_string_append_c (str, ' ');
> 		g_string_append (str, argv[i]);
> 	}
>
> 	exec_p = str->str;
> 	g_string_free (str, 0);
201c213
< xst_su_run_with_password (gchar *exec_path, gchar *password)
---
> xst_su_run_with_password (int argc, char *argv[], gchar *password)
203c215
< 	exec_su (exec_path, "root", password);
---
> 	exec_su (argc, argv, "root", password);
Index: xst-su.h
===================================================================
RCS file: /cvs/gnome/ximian-setup-tools/src/common/xst-su.h,v
retrieving revision 1.2
diff -r1.2 xst-su.h
28c28
< void xst_su_run_with_password (gchar *exec_path, gchar *password);
---
> void xst_su_run_with_password (int argc, char *argv[], gchar *password);
Index: xst-tool.c
===================================================================
RCS file: /cvs/gnome/ximian-setup-tools/src/common/xst-tool.c,v
retrieving revision 1.67
diff -r1.67 xst-tool.c
1307c1307
< authenticate (gchar *exec_path)
---
> authenticate (int argc, char *argv[])
1324c1324
< 		xst_su_run_with_password (exec_path, password);
---
> 		xst_su_run_with_password (argc, argv, password);
1437c1437
< 		authenticate (argv [0]);
---
> 		authenticate (argc, argv);


_______________________________________________
setup-tool-hackers maillist  -  setup-tool-hackers@ximian.com
http://lists.ximian.com/mailman/listinfo/setup-tool-hackers



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]