e2fsprogs/e2fsprogs-1.40.8-e2fsck_recovery_fix.patch

14 lines
421 B
Diff

diff --git a/e2fsck/recovery.c b/e2fsck/recovery.c
index 22e79a5..f7fd7b6 100644
--- a/e2fsck/recovery.c
+++ b/e2fsck/recovery.c
@@ -473,7 +473,7 @@ static int do_one_pass(journal_t *journal,
memcpy(nbh->b_data, obh->b_data,
journal->j_blocksize);
if (flags & JFS_FLAG_ESCAPE) {
- *((unsigned int *)bh->b_data) =
+ *((unsigned int *)nbh->b_data) =
htonl(JFS_MAGIC_NUMBER);
}