]> git.pld-linux.org Git - packages/unzip.git/blob - unzip-method99_hint.patch
819a002c6635f0cc61963dc775bf86b99295e427
[packages/unzip.git] / unzip-method99_hint.patch
1 --- unzip-5.52/extract.c.orig   2005-02-26 05:47:30.000000000 +0100
2 +++ unzip-5.52/extract.c        2008-05-29 18:33:08.000000000 +0200
3 @@ -120,6 +120,8 @@
4    "   skipping: %-22s  need %s compat. v%u.%u (can do v%u.%u)\n";
5  static ZCONST char Far ComprMsgNum[] =
6    "   skipping: %-22s  unsupported compression method %u\n";
7 +static ZCONST char Far SevenZipHint[] =
8 +  "   hint: compression method 99 means 'WinZip 9+ AES encryption'. try to use 7-zip instead of unzip.\n";
9  #ifndef SFX
10     static ZCONST char Far ComprMsgName[] =
11       "   skipping: %-22s  `%s' method not supported\n";
12 @@ -847,9 +849,13 @@
13                    LoadFarStringSmall(ComprNames[G.crec.compression_method])));
14              else
15  #endif
16 +            {
17                  Info(slide, 0x401, ((char *)slide, LoadFarString(ComprMsgNum),
18                    FnFilter1(G.filename),
19                    G.crec.compression_method));
20 +                if (G.crec.compression_method == 99 )
21 +                    Info(slide, 0x401, ((char *)slide, LoadFarString(SevenZipHint)));
22 +            }
23          }
24          return 0;
25      }
This page took 0.339747 seconds and 2 git commands to generate.