mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-03 07:45:47 +00:00
Don't close sudoers_fp, keep it open and set close on exec flag instead.
This commit is contained in:
4
parse.c
4
parse.c
@@ -125,10 +125,6 @@ sudoers_lookup(pwflag)
|
||||
set_perms(PERM_RUNAS);
|
||||
error = yyparse();
|
||||
|
||||
/* Close the sudoers file now that we are done with it. */
|
||||
(void) fclose(sudoers_fp);
|
||||
sudoers_fp = NULL;
|
||||
|
||||
if (error || parse_error) {
|
||||
set_perms(PERM_ROOT);
|
||||
return(VALIDATE_ERROR);
|
||||
|
Reference in New Issue
Block a user