summaryrefslogtreecommitdiffstats
path: root/debian/patches/dummy-zip-password.patch
blob: 062f5838392e9516c372f62ad3f035c8e53ddf72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Last-Update: 2014-12-13
Forwarded: no
Author: Dmitry Borisyuk" <q1werty@i.com.ua>
Bug-Debian: http://bugs.debian.org/772080
Description: prevent hangs on extraction from encrypted .ZIP archives, suppress password prompt with dummy password.

--- a/src/vfs/extfs/helpers/uzip.in
+++ b/src/vfs/extfs/helpers/uzip.in
@@ -32,9 +32,9 @@
 my $cmd_addlink = "$app_zip -g -y";
 # Command used to delete a file from the archive
 my $cmd_delete = "$app_zip -d";
 # Command used to extract a file to standard out
-my $cmd_extract = "$app_unzip -p";
+my $cmd_extract = "$app_unzip -P '' -p";
 
 # -rw-r--r--  2.2 unx     2891 tx     1435 defN 20000330.211927 ./edit.html
 # (perm) (?) (?) (size) (?) (zippedsize) (method) (yyyy)(mm)(dd).(HH)(MM)(SS) (fname)
 my $regex_zipinfo_line = qr"^(\S{7,10})\s+(\d+\.\d+)\s+(\S+)\s+(\d+)\s+(\S\S)\s+(\d+)\s+(\S{4})\s+(\d{4})(\d\d)(\d\d)\.(\d\d)(\d\d)(\d\d)\s(.*)$";