passwd: fix potential double close()

This commit is contained in:
Hiltjo Posthuma 2014-07-12 20:33:02 +00:00 committed by sin
parent fa0b80442c
commit 10a539e744
1 changed files with 0 additions and 1 deletions

View File

@ -209,7 +209,6 @@ newpass:
r = pw_copy(tfd, ffd, NULL);
if (r < 0)
goto cleanup;
close(ffd);
}
status = EXIT_SUCCESS;