summaryrefslogtreecommitdiff
path: root/sysutils/libgksu/files/patch-libgksu_gksu-run-helper.c
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-11-05 06:08:01 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-11-05 06:08:01 +0000
commit35971f2a2ec4f3b0509ce1bacf5d2a4e5402e04e (patch)
treebe1250422ccdcf77c7d461c50ddddd3a03b7f98d /sysutils/libgksu/files/patch-libgksu_gksu-run-helper.c
parentPass COPTS to make. (diff)
Add libgksu, a simple API to use su and sudo in programs that need to
execute tasks as another user. It provides X authentication facilities for running programs in an X session. PR: 72257 Submitted by: Jesse van den Kieboom <troplosti@orcaweb.cjb.net>
Notes
Notes: svn path=/head/; revision=120832
Diffstat (limited to 'sysutils/libgksu/files/patch-libgksu_gksu-run-helper.c')
-rw-r--r--sysutils/libgksu/files/patch-libgksu_gksu-run-helper.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sysutils/libgksu/files/patch-libgksu_gksu-run-helper.c b/sysutils/libgksu/files/patch-libgksu_gksu-run-helper.c
new file mode 100644
index 000000000000..91ba7703ccda
--- /dev/null
+++ b/sysutils/libgksu/files/patch-libgksu_gksu-run-helper.c
@@ -0,0 +1,15 @@
+--- libgksu/gksu-run-helper.c.orig Thu Sep 30 20:40:25 2004
++++ libgksu/gksu-run-helper.c Thu Sep 30 19:09:05 2004
+@@ -127,9 +127,9 @@
+ chmod (tmpfilename, S_IRUSR|S_IWUSR);
+
+ command =
+- g_strdup_printf ("/usr/bin/env -u XAUTHORITY=%s /usr/X11R6/bin/xauth add %s . \"`cat %s.tmp`\" > /dev/null 2>&1; /usr/bin/env -u XAUTHORITY=%s %s",
+- xauth_file, xauth_display,
+- xauth_file, xauth_file,
++ g_strdup_printf ("/bin/sh -c unset XAUTHORITY; /usr/X11R6/bin/xauth add %s . \"`cat %s.tmp`\" > /dev/null 2>&1; /bin/sh -c unset XAUTHORITY; %s",
++ xauth_display,
++ xauth_file,
+ argv[1]);
+
+ return_code = system (command);