summaryrefslogtreecommitdiffstats
path: root/disk-utils/mkfs.cramfs.c
diff options
context:
space:
mode:
authorSami Kerola2012-04-04 20:04:39 +0200
committerSami Kerola2012-04-04 20:04:39 +0200
commit45ca68ece78dd5d0f83863e33bfad2cc88fc2d1e (patch)
tree2da8b40a1f32f0779770f38c1ac1119e61b62713 /disk-utils/mkfs.cramfs.c
parentfdisk: verify writing to streams was successful (diff)
downloadkernel-qcow2-util-linux-45ca68ece78dd5d0f83863e33bfad2cc88fc2d1e.tar.gz
kernel-qcow2-util-linux-45ca68ece78dd5d0f83863e33bfad2cc88fc2d1e.tar.xz
kernel-qcow2-util-linux-45ca68ece78dd5d0f83863e33bfad2cc88fc2d1e.zip
disk-utils: verify writing to streams was successful
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'disk-utils/mkfs.cramfs.c')
-rw-r--r--disk-utils/mkfs.cramfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/disk-utils/mkfs.cramfs.c b/disk-utils/mkfs.cramfs.c
index 9777eaf97..8e38a8c89 100644
--- a/disk-utils/mkfs.cramfs.c
+++ b/disk-utils/mkfs.cramfs.c
@@ -40,6 +40,7 @@
#include "c.h"
#include "cramfs.h"
+#include "closestream.h"
#include "md5.h"
#include "nls.h"
#include "exitcodes.h"
@@ -718,6 +719,7 @@ int main(int argc, char **argv)
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
/* command line options */
while ((c = getopt(argc, argv, "hb:Ee:i:n:N:psVvz")) != EOF) {