summaryrefslogtreecommitdiffstats
path: root/usr.sbin/fdformat
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2006-03-12 02:45:45 +0000
committerderaadt <deraadt@openbsd.org>2006-03-12 02:45:45 +0000
commit3dff252225899beb927bb0d70132e3cd72f774c9 (patch)
tree347d5f39423b1342fa8af67018eb924ddfb82d28 /usr.sbin/fdformat
parentremove IPL_IMP and splimp(). (diff)
downloadwireguard-openbsd-3dff252225899beb927bb0d70132e3cd72f774c9.tar.xz
wireguard-openbsd-3dff252225899beb927bb0d70132e3cd72f774c9.zip
missing close(); dhill@mindcry.org
Diffstat (limited to 'usr.sbin/fdformat')
-rw-r--r--usr.sbin/fdformat/fdformat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/fdformat/fdformat.c b/usr.sbin/fdformat/fdformat.c
index 65548601af3..c1ba5328c85 100644
--- a/usr.sbin/fdformat/fdformat.c
+++ b/usr.sbin/fdformat/fdformat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdformat.c,v 1.12 2003/06/26 21:36:39 deraadt Exp $ */
+/* $OpenBSD: fdformat.c,v 1.13 2006/03/12 02:45:45 deraadt Exp $ */
/*
* Copyright (C) 1992-1994 by Joerg Wunsch, Dresden
@@ -341,6 +341,7 @@ main(int argc, char *argv[])
}
}
}
+ close(fd);
if (!quiet)
printf(" done.\n");