From: Eric Sandeen Date: Fri, 15 Apr 2016 03:20:46 +0000 (-0500) Subject: e2image: don't leak progress info to stdout X-Git-Tag: v1.43.1~11^2~1 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=be5ce275259e6216b618d3900786b365669a0b42;p=tools%2Fe2fsprogs.git e2image: don't leak progress info to stdout Commit c8ee0d60 fixed most of these, but missed this one. # e2image -r -p - > imagefile leads to a corrupted image due to the "Scanning inodes..." printf going to stdout. Reported-by: Alex Markley Addresses-Red-Hat-Bugzilla: #1327329 Signed-off-by: Eric Sandeen Signed-off-by: Theodore Ts'o --- diff --git a/misc/e2image.c b/misc/e2image.c index 82fe3e8..a32df00 100644 --- a/misc/e2image.c +++ b/misc/e2image.c @@ -1282,7 +1282,7 @@ static void write_raw_image_file(ext2_filsys fs, int fd, int type, int flags) mark_table_blocks(fs); if (show_progress) - printf("%s", _("Scanning inodes...\n")); + fprintf(stderr, "%s", _("Scanning inodes...\n")); retval = ext2fs_open_inode_scan(fs, 0, &scan); if (retval) {