Author: kevlo Date: Mon Nov 22 06:38:52 2010 New Revision: 215656 URL: http://svn.freebsd.org/changeset/base/215656
Log: MFC r215519: Fix fd leak Modified: stable/8/usr.bin/chkey/chkey.c Modified: stable/8/usr.bin/chkey/chkey.c ============================================================================== --- stable/8/usr.bin/chkey/chkey.c Mon Nov 22 06:37:21 2010 (r215655) +++ stable/8/usr.bin/chkey/chkey.c Mon Nov 22 06:38:52 2010 (r215656) @@ -203,6 +203,7 @@ main(int argc, char **argv) write(fd, &newline, sizeof(newline)) < 0) warn("%s: write", ROOTKEY); } + close(fd); } if (key_setsecret(secret) < 0) _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"