mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Put a workaround to possibly read previously corrupted archives missing lzma properties.
This commit is contained in:
parent
de2c9c5f62
commit
224a6306e9
3
lrzip.c
3
lrzip.c
|
|
@ -218,6 +218,9 @@ static bool get_magic(rzip_control *control, char *magic)
|
||||||
if ((int) magic[16]) {
|
if ((int) magic[16]) {
|
||||||
for (i = 0; i < 5; i++)
|
for (i = 0; i < 5; i++)
|
||||||
control->lzma_properties[i] = magic[i + 16];
|
control->lzma_properties[i] = magic[i + 16];
|
||||||
|
/* Cludge to allow us to read possibly corrupted archives */
|
||||||
|
if (!control->lzma_properties[0])
|
||||||
|
control->lzma_properties[0] = 93;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Whether this archive contains md5 data at the end or not */
|
/* Whether this archive contains md5 data at the end or not */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue