Whamcloud - gitweb
ChangeLog, recovery.c:
authorTheodore Ts'o <tytso@mit.edu>
Sat, 2 Jun 2001 04:50:14 +0000 (04:50 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 2 Jun 2001 04:50:14 +0000 (04:50 +0000)
  recovery.c (scan_revoke_records): Fix bug in recovery code; missing
   byte order conversion.

e2fsck/ChangeLog
e2fsck/recovery.c

index fca754e..3edbacc 100644 (file)
@@ -1,5 +1,8 @@
 2001-06-02  Theodore Tso  <tytso@valinux.com>
 
+       * recovery.c (scan_revoke_records): Fix bug in recovery code;
+               missing byte order conversion.
+
        * pass1.c (mark_inode_bad): Replace alloc_bad_map with a function
                which sets the bit in the bad inode bitmap.
                (e2fsck_pass1): Check for fast symlinks with an invalid
index 5630f13..9867503 100644 (file)
@@ -571,7 +571,7 @@ static int scan_revoke_records(journal_t *journal, struct buffer_head *bh,
                unsigned long blocknr;
                int err;
                
-               blocknr = * ((unsigned int *) (bh->b_data+offset));
+               blocknr = ntohl(* ((unsigned int *) (bh->b_data+offset)));
                offset += 4;
                err = journal_set_revoke(journal, blocknr, sequence);
                if (err)