Blame SOURCES/sudo-1.8.6p7-visudocontent.patch
|
|
a67eaf |
diff -up ./plugins/sudoers/visudo.c.fix ./plugins/sudoers/visudo.c
|
|
|
a67eaf |
--- ./plugins/sudoers/visudo.c.fix 2015-09-15 10:00:25.957642667 +0200
|
|
|
a67eaf |
+++ ./plugins/sudoers/visudo.c 2015-09-15 12:37:43.478306234 +0200
|
|
|
a67eaf |
@@ -479,6 +479,7 @@ reparse_sudoers(char *editor, char *args
|
|
|
a67eaf |
* Parse the edited sudoers files and do sanity checking
|
|
|
a67eaf |
*/
|
|
|
a67eaf |
do {
|
|
|
a67eaf |
+ parse_error = NULL;
|
|
|
a67eaf |
sp = tq_first(&sudoerslist);
|
|
|
a67eaf |
last = tq_last(&sudoerslist);
|
|
|
a67eaf |
fp = fopen(sp->tpath, "r+");
|
|
|
a67eaf |
@@ -544,7 +545,7 @@ reparse_sudoers(char *editor, char *args
|
|
|
a67eaf |
continue;
|
|
|
a67eaf |
edit_sudoers(sp, editor, args, errorlineno);
|
|
|
a67eaf |
}
|
|
|
a67eaf |
- } while (parse_error && sp != NULL);
|
|
|
a67eaf |
+ } while (parse_error);
|
|
|
a67eaf |
|
|
|
a67eaf |
debug_return;
|
|
|
a67eaf |
}
|