1 The patch from upstream (shadow-4.0.11.1-SUPATH.patch) sets environ too
2 early when using PAM, so move it to !USE_PAM.
4 --- shadow-4.0.14/src/su.c
5 +++ shadow-4.0.14/src/su.c
11 - /* setup the environment for PAM later on, else we run into auth problems */
12 - environ = newenvp; /* make new environment active */
15 if (getenv ("IFS")) /* don't export user IFS ... */
16 addenv ("IFS= \t\n", NULL); /* ... instead, set a safe IFS */
22 + environ = newenvp; /* make new environment active */
24 if (!amroot) /* no limits if su from root */
25 setup_limits (&pwent);