summaryrefslogtreecommitdiffstats
path: root/debian/patches/dummy-zip-password.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:22:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:22:04 +0000
commit91bb3b7bce2297f022a7d48604b1d8e3b9c54a8a (patch)
tree4633b3b9fc6b0a65333f51545214f29a3d0fd1b0 /debian/patches/dummy-zip-password.patch
parentAdding upstream version 3:4.8.30. (diff)
downloadmc-fa72b454b48fb4c04c0b85dd3acea0763764d71d.tar.xz
mc-fa72b454b48fb4c04c0b85dd3acea0763764d71d.zip
Adding debian version 3:4.8.30-1.debian/3%4.8.30-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/dummy-zip-password.patch')
-rw-r--r--debian/patches/dummy-zip-password.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/dummy-zip-password.patch b/debian/patches/dummy-zip-password.patch
new file mode 100644
index 0000000..062f583
--- /dev/null
+++ b/debian/patches/dummy-zip-password.patch
@@ -0,0 +1,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(.*)$";