Remove unneeded endpwent()/endgrent()

This commit is contained in:
Todd C. Miller
2010-06-04 12:11:02 -04:00
parent 4ecb005663
commit e3ac18f510

View File

@@ -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.