From 01802c2e6df94aa14609d5628b276bad6bb09968 Mon Sep 17 00:00:00 2001 From: Jeroen Oortwijn Date: Sun, 31 Oct 2010 21:32:21 +0100 Subject: [PATCH] libblkid: add signature to FAT32 fsinfo block 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 --- shlibs/blkid/src/superblocks/vfat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/shlibs/blkid/src/superblocks/vfat.c b/shlibs/blkid/src/superblocks/vfat.c index 9027d50d..078b1dda 100644 --- a/shlibs/blkid/src/superblocks/vfat.c +++ b/shlibs/blkid/src/superblocks/vfat.c @@ -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 && -- 2.39.5