]> granicus.if.org Git - sudo/commitdiff
Remove unneeded endpwent()/endgrent()
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 4 Jun 2010 16:11:02 +0000 (12:11 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 4 Jun 2010 16:11:02 +0000 (12:11 -0400)
src/sudo_edit.c

index 031a298386c485c583aa673586b71fc0664308a9..602d86651b10ec05eed622c0cfb35eb00d91e58e 100644 (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.