]> err.no Git - util-linux/commitdiff
libblkid: add signature to FAT32 fsinfo block
authorJeroen Oortwijn <oortwijn@gmail.com>
Sun, 31 Oct 2010 20:32:21 +0000 (21:32 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 1 Nov 2010 15:43:08 +0000 (16:43 +0100)
Add 0x41645252 to the list of valid signatures of the FAT32 fsinfo
block. It isn't a valid signature, but there are devices that use this
signature in their FAT32 filesystem.

Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/589369
Signed-off-by: Jeroen Oortwijn <oortwijn@gmail.com>
shlibs/blkid/src/superblocks/vfat.c

index 9027d50de0480e22b951589ab0f0443c3074c57b..078b1dda55cb1d275205a98d8f99c470b307e8d4 100644 (file)
@@ -380,6 +380,7 @@ static int probe_vfat(blkid_probe pr, const struct blkid_idmag *mag)
 
                        fsinfo = (struct fat32_fsinfo *) buf;
                        if (memcmp(fsinfo->signature1, "\x52\x52\x61\x41", 4) != 0 &&
+                           memcmp(fsinfo->signature1, "\x52\x52\x64\x41", 4) != 0 &&
                            memcmp(fsinfo->signature1, "\x00\x00\x00\x00", 4) != 0)
                                return -1;
                        if (memcmp(fsinfo->signature2, "\x72\x72\x41\x61", 4) != 0 &&