Don't try to support line continuation in /etc/environment.

This commit is contained in:
Todd C. Miller
2016-09-01 14:35:40 -06:00
parent c0db5c1234
commit 881814c9f9

View File

@@ -1184,7 +1184,7 @@ read_env_file(const char *path, int overwrite)
debug_return_bool(rval);
}
while (sudo_parseln(&line, &linesize, NULL, fp, 0) != -1) {
while (sudo_parseln(&line, &linesize, NULL, fp, PARSELN_CONT_IGN) != -1) {
/* Skip blank or comment lines */
if (*(var = line) == '\0')
continue;