From a479fe6049a0dbd7104186d897b627a247561d1b Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 2 Jun 2001 04:50:14 +0000 Subject: [PATCH] ChangeLog, recovery.c: recovery.c (scan_revoke_records): Fix bug in recovery code; missing byte order conversion. --- e2fsck/ChangeLog | 3 +++ e2fsck/recovery.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index fca754e..3edbacc 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,5 +1,8 @@ 2001-06-02 Theodore Tso + * 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 diff --git a/e2fsck/recovery.c b/e2fsck/recovery.c index 5630f13..9867503 100644 --- a/e2fsck/recovery.c +++ b/e2fsck/recovery.c @@ -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) -- 1.8.3.1