2
0
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:
Todd C. Miller
2008-01-27 21:31:27 +00:00
parent f0dc1caa45
commit 801860b298
3 changed files with 7 additions and 3 deletions

2
env.c
View File

@@ -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()