2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Don't read /etc/environment on Linux when using PAM, PAM should set

the environment variables as needed via pam_env.
This commit is contained in:
Todd C. Miller
2012-03-08 14:51:03 -05:00
parent d4259ef2ca
commit 08c6c776c9

View File

@@ -594,7 +594,7 @@ sudoers_policy_main(int argc, char * const argv[], int pwflag, char *env_add[],
NewArgv[1] = "--login";
}
#if defined(__linux__) || defined(_AIX)
#if defined(_AIX) || (defined(__linux__) && !defined(HAVE_PAM))
/* Insert system-wide environment variables. */
read_env_file(_PATH_ENVIRONMENT, true);
#endif