]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: (hfs) check allocation size
authorKarel Zak <kzak@redhat.com>
Thu, 12 Apr 2018 12:21:47 +0000 (14:21 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 12 Apr 2018 12:21:47 +0000 (14:21 +0200)
commit2b8ac985ba8a6e3aa374bdb5e3cf3268fc765609
tree302414919549170e322e00890cb52f2483b37cd5
parentdfd3bb8bc203177e180762d78d20f99b73847d6d
libblkid: (hfs) check allocation size

The current prober is based on signature only (two bytes!). It seems
pretty fragile. Linux kernel also checks for allocation size in the
superblock, let's use it too... it's better than nothing.

Reported-by: Milan Broz <gmazyland@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/hfs.c