From aca5123d7275c8f58b1a229732b9c8f0795af6c2 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 7 May 2011 23:36:55 +1000 Subject: [PATCH] Support zero byte sized pre 0.6 archives by setting the eof flag always. --- lrzip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lrzip.c b/lrzip.c index 1dabdeb..06c4d6e 100644 --- a/lrzip.c +++ b/lrzip.c @@ -147,6 +147,8 @@ static void get_magic(rzip_control *control, char *magic) expected_size = le64toh(expected_size); } control->st_size = expected_size; + if (control->major_version == 0 && control->minor_version < 6) + control->eof = 1; /* restore LZMA compression flags only if stored */ if ((int) magic[16]) {