forked from pool/mtools
Petr Gajdos
9f34f85fc8
* Added missing -i option to mshortname * New mshortname command * Fix floppyd for disks bigger than 2 Gig * Remove obsolete -z flag * Remove now unsupported AC_USE_SYSTEM_EXTENSIONS * Fixed output formatting of mdir if MTOOLS_DOTTED_DIR is set * Mformat now correctly writes backup boot sector * Fixed signedness of serial number in mlabel * Fixed buffer size problem in mlabel * Make mlabel write backup boot sector if FAT32 * Catch situation where both clear and new label are given to mlabel * Quote filename parameters to scripts * Mformat: Close file descriptor for boot sector * Added lzip support to scripts/uz * Added Tot_sectors option to mformat * Fixed hidden sector handling in mformat * Minfo generates mformat command lines containing new -T option * Mlabel prints error if label too long - removed upstreamed patches: * script.diff * file_close.diff * initialize.diff OBS-URL: https://build.opensuse.org/package/show/Base:System/mtools?expand=0&rev=17
14 lines
431 B
Diff
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)
|