From 7ac02a5ebddcc6187c893eedc80d92777b399575 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Wed, 11 Jun 1997 18:32:35 +0000 Subject: [PATCH] ChangeLog, pass2.c: Check the error return from ext2fs_dblist_iterate. --- e2fsck/ChangeLog | 4 ++++ e2fsck/pass2.c | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index b49d558..b0957d5 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,3 +1,7 @@ +Tue Jun 10 12:07:37 1997 Theodore Ts'o + + * pass2.c (pass2): Check the error return from ext2fs_dblist_iterate. + Thu May 8 22:45:27 1997 Theodore Ts'o * e2fsck.8.in: Fix minor typos and grammer oops found by Bill diff --git a/e2fsck/pass2.c b/e2fsck/pass2.c index 8822e8f..4c987f3 100644 --- a/e2fsck/pass2.c +++ b/e2fsck/pass2.c @@ -108,7 +108,12 @@ void pass2(ext2_filsys fs) clear_problem_context(&cd.pctx); retval = ext2fs_dblist_iterate(fs->dblist, check_dir_block, &cd); - + if (retval) { + com_err("ext2fs_dblist_iterate", retval, + "while iterating through dblist"); + fatal_error(0); + } + free(buf); ext2fs_free_dblist(fs->dblist); -- 1.8.3.1