]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: fix endianness problem when reading htree nodes
authorLukas Czerner <lczerner@redhat.com>
Fri, 9 Mar 2018 11:28:02 +0000 (12:28 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 11 Mar 2018 02:23:16 +0000 (21:23 -0500)
commit1d9ec88df621a74abb2a0430b474cac3c4fc998a
treeabfe78e5a2008946043a80d08834ffc84770f7a5
parent4d32184d220bc3a56d3630d00a8c696389fe25ee
e2fsck: fix endianness problem when reading htree nodes

Wrong directory block number can be saved in ->previous on big endian
system in parse_int_node(). Fix it by moving the mask out of the endian
conversion.

Fixes: ae9efd05a986 ("e2fsck: 3 level hash tree directory optimization")
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass2.c
lib/ext2fs/ext2_fs.h