#509091 mc hangs up on attempt to enter .zip archive with encrypted headers

Package:
mc
Source:
mc
Description:
Midnight Commander - a powerful file manager
Submitter:
Christoph Biedl
Date:
2015-02-17 10:27:13 UTC
Severity:
normal
#509091#5
Date:
2008-12-18 09:37:12 UTC
From:
To:
To reproduce:

1. Create archive foo.zip with encrypted files like
$ echo "test" >foo.txt
$ zip -e -r foo foo.txt
  (Select an arbitrary password)

2. Start mc, select foo.zip on a panel, hit Enter and try to read or
   copy foo.txt

mc hangs up

The problem is the same as in #324920: mc starts a program to handle
the archive - unzip in the case here, that program tries to read the
password from stdin and fails.

    Chri- "*sigh*" stoph

#509091#10
Date:
2008-12-23 10:05:21 UTC
From:
To:
OK, I think, the "vfext" should use

    unzip -Z -v test.zip |grep 'file security status:'

to determiner whether the file  is  encrypted  or  not  and  then  react
approriated...

Note:  I do not use the original "/usr/share/mc/extfs/unzip" which is
       writen in SHELL script (like the "tdmc_tar") and is working.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant



Am 2008-12-18 10:37:12, schrieb Christoph Biedl:
------------------------ END OF REPLIED MESSAGE ------------------------

#509091#15
Date:
2009-05-08 21:55:40 UTC
From:
To:
tags 509091 confirmed
thanks

Hello,
I can reproduce this bug in 2:4.6.2-2 version also
When I hit "CTRL + C", I have that message:
"[/home/sid/foo.zip] foo.txt password: uzip (copyout): `unzip' failed
-non-zero exit status (80)"

Best regards

Denis Briand

#509091#20
Date:
2009-05-08 21:55:40 UTC
From:
To:
tags 509091 confirmed
thanks

Hello,
I can reproduce this bug in 2:4.6.2-2 version also
When I hit "CTRL + C", I have that message:
"[/home/sid/foo.zip] foo.txt password: uzip (copyout): `unzip' failed
-non-zero exit status (80)"

Best regards

Denis Briand

#509091#25
Date:
2009-05-19 13:33:05 UTC
From:
To:
tags 509091 upstream
found 509091 2:4.6.2-2
stop

found on last upstream git snapshot
Denis

#509091#32
Date:
2009-05-19 13:33:05 UTC
From:
To:
tags 509091 upstream
found 509091 2:4.6.2-2
stop

found on last upstream git snapshot
Denis