forked from pool/mtools
Petr Gajdos
0a191e9672
* 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
14 lines
433 B
Diff
14 lines
433 B
Diff
Index: file.c
|
|
===================================================================
|
|
--- file.c.orig
|
|
+++ file.c
|
|
@@ -591,7 +591,7 @@ static Stream_t *_internalFileOpen(Strea
|
|
Pattern.loopDetectRel = 0;
|
|
Pattern.loopDetectAbs = first;
|
|
if(!hash_lookup(filehash, (T_HashTableEl) &Pattern,
|
|
- (T_HashTableEl **)&File, 0)){
|
|
+ (T_HashTableEl **)(void *)&File, 0)){
|
|
File->refs++;
|
|
This->refs--;
|
|
return (Stream_t *) File;
|