Control: tags -1 patch 

Hi,

this is very easily understood.
When the file is encrypted, the unzip process asks for password interactively,
but the user neither sees the prompt nor can enter the password, thus mc hangs.

A very simple workaround is to supply empty password with -P. Here is the patch:


--- /usr/lib/mc/extfs.d/uzip~   2014-07-09 22:05:53.000000000 +0300
+++ /usr/lib/mc/extfs.d/uzip    2014-12-07 00:36:45.000000000 +0200
@@ -32,7 +32,7 @@
 # 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) 
(fname)


You may patch /usr/lib/mc/extfs.d/uzip directly, no need to recompile mc.
If you wish to patch the source, then apply the patch to 
src/vfs/extfs/helpers/uzip.in


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to