summaryrefslogtreecommitdiff
path: root/recipes/shadow/files/shadow-4.1.4.2-su_no_sanitize_env.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/shadow/files/shadow-4.1.4.2-su_no_sanitize_env.patch')
-rw-r--r--recipes/shadow/files/shadow-4.1.4.2-su_no_sanitize_env.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes/shadow/files/shadow-4.1.4.2-su_no_sanitize_env.patch b/recipes/shadow/files/shadow-4.1.4.2-su_no_sanitize_env.patch
new file mode 100644
index 0000000000..eaf5aab4a7
--- /dev/null
+++ b/recipes/shadow/files/shadow-4.1.4.2-su_no_sanitize_env.patch
@@ -0,0 +1,16 @@
+http://bugs.gentoo.org/show_bug.cgi?id=301957
+https://alioth.debian.org/scm/browser.php?group_id=30580
+
+Index: shadow-4.1.4.2/src/su.c
+===================================================================
+--- shadow-4.1.4.2.orig/src/su.c 2009-07-23 13:38:56.000000000 -0700
++++ shadow-4.1.4.2/src/su.c 2010-06-03 17:46:47.718944010 -0700
+@@ -378,7 +378,7 @@ int main (int argc, char **argv)
+ #endif
+ #endif /* !USE_PAM */
+
+- sanitize_env ();
++ /* sanitize_env (); */
+
+ (void) setlocale (LC_ALL, "");
+ (void) bindtextdomain (PACKAGE, LOCALEDIR);