Bug#772080: mc: Hanging when trying to unzip an password saved file

2014-12-06 Thread Dmitry Borisyuk
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.0 +0300
+++ /usr/lib/mc/extfs.d/uzip2014-12-07 00:36:45.0 +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 2330.211927 ./edit.html
 # (perm) (?) (?) (size) (?) (zippedsize) (method) ()(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



Bug#772080: mc: Hanging when trying to unzip an password saved file

2014-12-04 Thread Frank Lanitz
Package: mc
Version: 3:4.8.13-2
Severity: normal

Dear Maintainer,

When I was trying to unzip a file from a password secured zip file crated with 
zip --password mc just hangs without any response. 

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
 ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: 8.0
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mc depends on:
ii  e2fslibs  1.42.12-1
ii  libc6 2.19-13
ii  libglib2.0-0  2.42.1-1
ii  libgpm2   1.20.4-6.1
ii  libslang2 2.3.0-2
ii  libssh2-1 1.4.3-4
ii  mc-data   3:4.8.13-2

Versions of packages mc recommends:
ii  mime-support  3.57
ii  perl  5.20.1-3
ii  unzip 6.0-12+b1

Versions of packages mc suggests:
pn  arj  none
ii  bzip21.0.6-7+b1
pn  dbview   none
pn  djvulibre-binnone
ii  evince [pdf-viewer]  3.14.1-1
ii  file 1:5.20-2
pn  genisoimage  none
pn  gv   none
ii  imagemagick  8:6.8.9.9-3
pn  odt2txt  none
ii  poppler-utils0.26.5-2
ii  python   2.7.8-2
pn  python-boto  none
pn  python-tznone
ii  texlive-binaries 2014.20140926.35254-3
ii  w3m  0.5.3-19
ii  zip  3.0-8

-- no debconf information


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