[Pkg-shadow-devel] Environment copied twice in su.c
Nicolas François
nicolas.francois at centraliens.net
Mon Aug 29 20:02:58 UTC 2005
Hello Tomasz,
Can you have a look at this patch.
This was present in previous version of shadow (4.0.11 or 4.0.10).
Kind Regards,
--
Nekral
-------------- next part --------------
Index: src/su.c
===================================================================
RCS file: /cvsroot/shadow/src/su.c,v
retrieving revision 1.42
diff -u -r1.42 su.c
--- src/su.c 29 Aug 2005 17:16:43 -0000 1.42
+++ src/su.c 29 Aug 2005 20:00:36 -0000
@@ -595,7 +595,10 @@
addenv ("PATH", cp);
}
+#ifndef USE_PAM
+/* setup the environment for pam later on, else we run into auth problems */
environ = newenvp; /* make new environment active */
+#endif
if (getenv ("IFS")) /* don't export user IFS ... */
addenv ("IFS= \t\n", NULL); /* ... instead, set a safe IFS */
More information about the Pkg-shadow-devel
mailing list