--- shadow-4.0.5/src/su.c.orig 2004-11-03 18:25:17.663531472 -0500 +++ shadow-4.0.5/src/su.c 2004-11-03 18:25:24.256529184 -0500 @@ -359,7 +359,6 @@ */ if ((cp = getenv ("TERM"))) addenv ("TERM", cp); -#ifndef USE_PAM /* * Also leave DISPLAY and XAUTHORITY if present, else * pam_xauth will not work. @@ -368,7 +367,6 @@ addenv ("DISPLAY", cp); if ((cp = getenv ("XAUTHORITY"))) addenv ("XAUTHORITY", cp); -#endif /* !USE_PAM */ } else { while (*envp) addenv (*envp++, NULL);