Whamcloud - gitweb
ChangeLog, pass2.c:
authorTheodore Ts'o <tytso@mit.edu>
Wed, 11 Jun 1997 18:32:35 +0000 (18:32 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 11 Jun 1997 18:32:35 +0000 (18:32 +0000)
  Check the error return from ext2fs_dblist_iterate.

e2fsck/ChangeLog
e2fsck/pass2.c

index b49d558..b0957d5 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jun 10 12:07:37 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * pass2.c (pass2): Check the error return from ext2fs_dblist_iterate.
+
 Thu May  8 22:45:27 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
        * e2fsck.8.in: Fix minor typos and grammer oops found by Bill
index 8822e8f..4c987f3 100644 (file)
@@ -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);