e2image: don't leak progress info to stdout

Commit c8ee0d60 fixed most of these, but missed this one.

# e2image -r -p <device> - > imagefile

leads to a corrupted image due to the "Scanning inodes..."
printf going to stdout.

Reported-by: Alex Markley <alex@malexmedia.net>
Addresses-Red-Hat-Bugzilla: #1327329
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
maint
Eric Sandeen 2016-04-14 22:20:46 -05:00 committed by Theodore Ts'o
parent 8ef71d873c
commit be5ce27525
1 changed files with 1 additions and 1 deletions

View File

@ -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) {