From 96f5fe4cd0b5df7ee5d7a44a20d49d3110d9c2ba Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 7 May 2016 04:52:21 -0600 Subject: [PATCH] Ignore the return value of the initial sudoersparse(), before we have actually edited any files. Coverity CID 104078. --- plugins/sudoers/visudo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sudoers/visudo.c b/plugins/sudoers/visudo.c index fba57d125..320c2e607 100644 --- a/plugins/sudoers/visudo.c +++ b/plugins/sudoers/visudo.c @@ -238,7 +238,7 @@ main(int argc, char *argv[]) if ((sudoersin = open_sudoers(sudoers_file, true, NULL)) == NULL) exit(1); init_parser(sudoers_file, false); - sudoersparse(); + (void) sudoersparse(); (void) update_defaults(SETDEF_GENERIC|SETDEF_HOST|SETDEF_USER); editor = get_editor(&editor_argc, &editor_argv); -- 2.40.0