2009-02-10 Felix Zielcke <fzielcke@z-51.de>

* fs/fat.c (grub_fat_mount): Fix wrong comparison.

	Based on patch from Javier Martín.
This commit is contained in:
fzielcke 2009-02-10 09:50:08 +00:00
parent 96da94074c
commit 06ff20fcfe
4 changed files with 37 additions and 31 deletions

View file

@ -187,9 +187,9 @@ grub_fat_mount (grub_disk_t disk)
if (grub_disk_read (disk, 0, 0, sizeof (bpb), (char *) &bpb))
goto fail;
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))
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;
/* Get the sizes of logical sectors and clusters. */