Remove unneeded endpwent()/endgrent()
This commit is contained in:
@@ -124,13 +124,6 @@ sudo_edit(struct command_details *command_details, char *argv[], char *envp[])
|
||||
while (tmplen > 0 && tmpdir[tmplen - 1] == '/')
|
||||
tmplen--;
|
||||
|
||||
/*
|
||||
* Close password, shadow, and group files before we try to open
|
||||
* user-specified files to prevent the opening of things like /dev/fd/4
|
||||
*/
|
||||
endpwent();
|
||||
endgrent();
|
||||
|
||||
/*
|
||||
* The user's editor must be separated from the files to be
|
||||
* edited by a "--" option.
|
||||
|
Reference in New Issue
Block a user