[hackers] [ubase] passwd: fix potential double close() || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sat, 12 Jul 2014 21:04:33 +0200

commit 10a539e7445ed00f3c6914bf17e3c9d84906c031
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Sat Jul 12 20:33:02 2014 +0000

    passwd: fix potential double close()

diff --git a/passwd.c b/passwd.c
index 359de4d..2e7627a 100644
--- a/passwd.c
+++ b/passwd.c
_AT_@ -209,7 +209,6 @@ newpass:
                 r = pw_copy(tfd, ffd, NULL);
                 if (r < 0)
                         goto cleanup;
- close(ffd);
         }
         status = EXIT_SUCCESS;
 
Received on Sat Jul 12 2014 - 21:04:33 CEST

This archive was generated by hypermail 2.3.0 : Sat Jul 12 2014 - 21:12:10 CEST