From: Theodore Ts'o Date: Sun, 29 Jul 2001 15:48:10 +0000 (-0400) Subject: e2fsck.c (e2fsck_reset_context): Fix bug; only close the io channel if X-Git-Tag: E2FSPROGS-1_23~41 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=1e16526bd9d7d14daf4bac46e1c6a3139182ba94;p=tools%2Fe2fsprogs.git e2fsck.c (e2fsck_reset_context): Fix bug; only close the io channel if it is *different* from the filesystem io channel --- diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index 6ef2571..53dfaf2 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,3 +1,9 @@ +2001-07-29 Theodore Tso + + * e2fsck.c (e2fsck_reset_context): Fix bug; only close the io + channel if it is *different* from the filesystem io + channel. + 2001-07-27 Theodore Tso * problem.c (PR_1_SET_IMMUTABLE): Clarify problem message. diff --git a/e2fsck/e2fsck.c b/e2fsck/e2fsck.c index 0f61672..1ec8ffa 100644 --- a/e2fsck/e2fsck.c +++ b/e2fsck/e2fsck.c @@ -63,7 +63,7 @@ errcode_t e2fsck_reset_context(e2fsck_t ctx) ctx->inode_link_info = 0; } if (ctx->journal_io) { - if (ctx->fs && ctx->fs->io == ctx->journal_io) + if (ctx->fs && ctx->fs->io != ctx->journal_io) io_channel_close(ctx->journal_io); ctx->journal_io = 0; }