From: Theodore Ts'o Date: Wed, 11 Jun 1997 18:32:35 +0000 (+0000) Subject: ChangeLog, pass2.c: X-Git-Tag: E2FSPROGS-1_11~13 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=7ac02a5ebddcc6187c893eedc80d92777b399575;p=tools%2Fe2fsprogs.git ChangeLog, pass2.c: Check the error return from ext2fs_dblist_iterate. --- 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);