mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-02 15:25:58 +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:
@@ -594,7 +594,7 @@ sudoers_policy_main(int argc, char * const argv[], int pwflag, char *env_add[],
|
|||||||
NewArgv[1] = "--login";
|
NewArgv[1] = "--login";
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__linux__) || defined(_AIX)
|
#if defined(_AIX) || (defined(__linux__) && !defined(HAVE_PAM))
|
||||||
/* Insert system-wide environment variables. */
|
/* Insert system-wide environment variables. */
|
||||||
read_env_file(_PATH_ENVIRONMENT, true);
|
read_env_file(_PATH_ENVIRONMENT, true);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user