packages: libgnomesu/libgnomesu-unsetenv.patch (NEW) - merged from OpenSUSE...
hawk
hawk at pld-linux.org
Thu Nov 25 10:38:18 CET 2010
Author: hawk Date: Thu Nov 25 09:38:18 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- merged from OpenSUSE: unset DBUS_SESSION_BUS_ADDRESS environment variable
---- Files affected:
packages/libgnomesu:
libgnomesu-unsetenv.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/libgnomesu/libgnomesu-unsetenv.patch
diff -u /dev/null packages/libgnomesu/libgnomesu-unsetenv.patch:1.1
--- /dev/null Thu Nov 25 10:38:18 2010
+++ packages/libgnomesu/libgnomesu-unsetenv.patch Thu Nov 25 10:38:13 2010
@@ -0,0 +1,24 @@
+Index: libgnomesu-1.0.0/su-backend/common.c
+===================================================================
+--- libgnomesu-1.0.0.orig/su-backend/common.c
++++ libgnomesu-1.0.0/su-backend/common.c
+@@ -106,6 +106,7 @@ modify_environment (const struct passwd
+ const char *env_term;
+ const char *env_display, *env_shell;
+ const char *env_lang, *env_lcall, *env_lcmsgs, *env_xauthority;
++ const char *env_dbus;
+
+ /* Sanity-check the environment variables as best we can: those
+ * which aren't path names shouldn't contain "/", and none of
+@@ -175,6 +176,11 @@ modify_environment (const struct passwd
+ } else if (!path)
+ xputenv (concat ("PATH", "=",
+ (pw->pw_uid) ? DEFAULT_LOGIN_PATH : DEFAULT_ROOT_LOGIN_PATH));
++
++ /* Unset environment variables */
++ env_dbus = g_getenv ("DBUS_SESSION_BUS_ADDRESS");
++ if (env_dbus)
++ unsetenv ("DBUS_SESSION_BUS_ADDRESS");
+ }
+
+ /* Become the user and group(s) specified by PW. */
================================================================
More information about the pld-cvs-commit
mailing list