1
0
forked from pool/mtools
mtools/mtools-4.0.17-fat-bits.diff
Petr Gajdos 0a191e9672 - updated to 4.0.17:
* mbadblocks now takes a list of bad blocks (either as sectors
    or as clusters)
  * mbadblocks now is able to do write scanning for bad blocks
  * mshowfat can show cluster of specific offset
  * Enable mtools to deal with very small sector sizes...
  * Fixed encoding of all-lowercase names (no need to mangle
    these)
  * Consider every directory entry after an ENDMARK (0x00) to be deleted
  * After writing a new entry at end of a directory, be sure to also add
    an ENDMARK (0x00)
  * Deal with possibility of a NULL pointer being returned by
    localtime during timestamp conversion

OBS-URL: https://build.opensuse.org/package/show/Base:System/mtools?expand=0&rev=24
2011-06-30 13:54:34 +00:00

14 lines
431 B
Diff

Index: fat.c
===================================================================
--- fat.c.orig
+++ fat.c
@@ -722,7 +722,7 @@ static int old_fat_read(Fs_t *This, unio
if(check_media_type(This,boot, tot_sectors))
return -1;
- if(This->num_clus >= FAT12) {
+ if(This->num_clus >= FAT12 || config_fat_bits == 16) {
set_fat16(This);
/* third FAT byte must be 0xff */
if(!mtools_skip_check && readByte(This, 3) != 0xff)