From 881814c9f9c6980c18bbfcdf1cb80c183326ffc5 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 1 Sep 2016 14:35:40 -0600 Subject: [PATCH] Don't try to support line continuation in /etc/environment. --- plugins/sudoers/env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sudoers/env.c b/plugins/sudoers/env.c index daecd55b5..764ccf0fa 100644 --- a/plugins/sudoers/env.c +++ b/plugins/sudoers/env.c @@ -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; -- 2.40.0