From: Theodore Ts'o Date: Mon, 5 May 2003 23:50:49 +0000 (-0400) Subject: Stupid think-o bugfix in test_io.c: Don't close data->outfile X-Git-Tag: E2FSPROGS-1_34-WIP-0521~24 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=c62dbdb9ec3244c8b324d8dbeb9ee14baac361f5;p=tools%2Fe2fsprogs.git Stupid think-o bugfix in test_io.c: Don't close data->outfile if it is stderr. --- diff --git a/lib/ext2fs/test_io.c b/lib/ext2fs/test_io.c index 3d747e8..3510666 100644 --- a/lib/ext2fs/test_io.c +++ b/lib/ext2fs/test_io.c @@ -199,7 +199,7 @@ static errcode_t test_close(io_channel channel) if (data->real) retval = io_channel_close(data->real); - if (data->outfile) + if (data->outfile && data->outfile != stderr) fclose(data->outfile); ext2fs_free_mem((void **) &channel->private_data);