]> granicus.if.org Git - sudo/commitdiff
Don't try to support line continuation in /etc/environment.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 1 Sep 2016 20:35:40 +0000 (14:35 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 1 Sep 2016 20:35:40 +0000 (14:35 -0600)
plugins/sudoers/env.c

index daecd55b5f769393e2d5b1459d4085aab712a9ca..764ccf0faa083832c33c488d2b1596ef08926b08 100644 (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;