mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Only read /etc/environment on Linux and AIX
This commit is contained in:
2
env.c
2
env.c
@@ -737,6 +737,7 @@ validate_env_vars(env_vars)
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(__linux__) || defined(_AIX)
|
||||
/*
|
||||
* Read in /etc/environment ala AIX and Linux.
|
||||
* Lines are in the form of NAME=VALUE
|
||||
@@ -770,6 +771,7 @@ read_env_file(path)
|
||||
}
|
||||
fclose(fp);
|
||||
}
|
||||
#endif /* __linux__ || _AIX */
|
||||
|
||||
void
|
||||
init_envtables()
|
||||
|
Reference in New Issue
Block a user