svn commit: r215656 - stable/8/usr.bin/chkey
Kevin Lo
kevlo at FreeBSD.org
Mon Nov 22 06:38:53 UTC 2010
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)
More information about the svn-src-stable
mailing list