summaryrefslogtreecommitdiff
path: root/usr.sbin/fdformat/fdformat.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-03-12 02:45:46 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-03-12 02:45:46 +0000
commit8c9b704874cd38a9400c18a6cd8f343c3c4b6a1a (patch)
tree846b6c6913c6173c808d59bd1143785072ec8dbb /usr.sbin/fdformat/fdformat.c
parent3bcefd7a7cf8e50af96427b7562828975283e8ee (diff)
missing close(); dhill@mindcry.org
Diffstat (limited to 'usr.sbin/fdformat/fdformat.c')
-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");