diff options
author | Sami Kerola | 2012-04-04 19:56:48 +0200 |
---|---|---|
committer | Sami Kerola | 2012-04-04 19:56:48 +0200 |
commit | c05a80ca6385b85c30094390f31615152adfed2e (patch) | |
tree | 387668598263f1a9034e7c70c1c299016091f759 /misc-utils/wipefs.c | |
parent | mount: verify writing to streams was successful (diff) | |
download | kernel-qcow2-util-linux-c05a80ca6385b85c30094390f31615152adfed2e.tar.gz kernel-qcow2-util-linux-c05a80ca6385b85c30094390f31615152adfed2e.tar.xz kernel-qcow2-util-linux-c05a80ca6385b85c30094390f31615152adfed2e.zip |
misc-utils: verify writing to streams was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/wipefs.c')
-rw-r--r-- | misc-utils/wipefs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/misc-utils/wipefs.c b/misc-utils/wipefs.c index bd20997a1..a9d74f043 100644 --- a/misc-utils/wipefs.c +++ b/misc-utils/wipefs.c @@ -38,6 +38,7 @@ #include "writeall.h" #include "match.h" #include "c.h" +#include "closestream.h" struct wipe_desc { loff_t offset; /* magic string offset */ @@ -391,6 +392,7 @@ main(int argc, char **argv) setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); + atexit(close_stdout); while ((c = getopt_long(argc, argv, "ahno:pqt:V", longopts, NULL)) != -1) { switch(c) { |