Skip to content

Commit

Permalink
-l can't handle deferred lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
stain committed Sep 3, 2019
1 parent ecdd214 commit e5b5488
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sunzip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1254,6 +1254,8 @@ local void sunzip(int file, int quiet, int write, int over, int list)
if (flag & 0xf7f0U)
bye("unknown zip header flags set");
method = get2(in); /* compression method */
if ((flag & 8) && list)
bye("cannot handle deferred lengths without decompressing (try -t)");
if ((flag & 8) && method != 8 && method != 9 && method != 12)
bye("cannot handle deferred lengths for pre-deflate methods");
acc = mod = dos2time(get4(in)); /* file date/time */
Expand Down

0 comments on commit e5b5488

Please sign in to comment.