FAT: fix installer on FAT32 filesystems
authorH. Peter Anvin <hpa@zytor.com>
Mon, 25 Jan 2010 00:53:37 +0000 (16:53 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 25 Jan 2010 00:53:37 +0000 (16:53 -0800)
The FAT32 superblock has a 12-byte reserved field which wasn't
accounted for in the structure.  As a result, the installer refused to
run on a FAT32 filesystem.  Fix the structure.

Reported-by: Kim Mik <kimmik999999@yahoo.co.uk>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
libinstaller/syslxint.h

index e2a8072..336e6f0 100644 (file)
@@ -126,6 +126,7 @@ struct boot_sector {
            uint32_t RootClus;
            uint16_t FSInfo;
            uint16_t BkBootSec;
+           uint8_t Reserved0[12];
            uint8_t DriveNumber;
            uint8_t Reserved1;
            uint8_t BootSignature;