From b1d51f028bfc8b1dca5730f78ac5682ba7a94c05 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Tue, 31 Jan 2012 23:26:07 +0100 Subject: [PATCH] * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype check as some mkfs implementations omit it. --- ChangeLog | 5 +++++ grub-core/fs/fat.c | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9efd2c724..d0c36a535 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-01-31 Vladimir Serbinenko + + * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype + check as some mkfs implementations omit it. + 2012-01-31 Vladimir Serbinenko * docs/grub.texi (Unicode): Mention identifier and space limitations. diff --git a/grub-core/fs/fat.c b/grub-core/fs/fat.c index 6adc95c37..64b07e6d8 100644 --- a/grub-core/fs/fat.c +++ b/grub-core/fs/fat.c @@ -244,11 +244,6 @@ grub_fat_mount (grub_disk_t disk) if (grub_memcmp ((const char *) bpb.oem_name, "EXFAT ", sizeof (bpb.oem_name)) != 0) goto fail; -#else - if (grub_strncmp((const char *) bpb.version_specific.fat12_or_fat16.fstype, "FAT12", 5) - && grub_strncmp((const char *) bpb.version_specific.fat12_or_fat16.fstype, "FAT16", 5) - && grub_strncmp((const char *) bpb.version_specific.fat32.fstype, "FAT32", 5)) - goto fail; #endif /* Get the sizes of logical sectors and clusters. */