Ticket #2100 (closed defect: duplicate)

Opened 15 years ago

Last modified 14 years ago

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

Reported by: narcan Owned by:
Priority: major Milestone:
Component: mc-vfs Version:
Keywords: Cc:
Blocked By: Blocking:
Branch state: Votes for changeset:

Description

Hello,

from our bug tracking system:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509091

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

It can be reproducible from 4.6.2 to the last version.

thank you very much

Denis Briand
mc Debian maintainer

Change History

comment:1 Changed 15 years ago by andrew_b

  • Version changed from version not selected to 4.6.2
  • Component changed from mc-core to mc-vfs

How to recognize that file is enctypted and unzip is waiting for a password?

comment:2 Changed 15 years ago by angel_il

$ unzip -Z 1.zip
Archive: 1.zip 151 bytes 1 file
-rw-r--r-- 2.3 unx 5 tx stor 11-Mar-10 20:55 foo.txt
1 file, 5 bytes uncompressed, 5 bytes compressed: 0.0%
$ unzip -Z 2.zip
Archive: 2.zip 179 bytes 1 file
-rw-r--r-- 2.3 unx 5 TX stor 11-Mar-10 20:55 foo.txt
1 file, 5 bytes uncompressed, 5 bytes compressed: 0.0%

1.zip not enctypted
2.zip is enctypted

tx <-> TX

we can try use this...

comment:3 follow-up: ↓ 5 Changed 15 years ago by angel_il

$ unzip -Zv foo |grep encr

file security status: encrypted

$ unzip -Zv f |grep encr

file security status: encrypted

$ unzip -Zv 4 |grep encr

file security status: not encrypted

comment:4 Changed 15 years ago by angel_il

for dirty hack need add -P option like this

uzip

 35 my $cmd_extract = "$app_unzip -p -P fakepassword";

comment:5 in reply to: ↑ 3 Changed 15 years ago by andrew_b

Replying to angel_il:

$ unzip -Zv foo |grep encr

file security status: encrypted

$ unzip -Zv f |grep encr

file security status: encrypted

$ unzip -Zv 4 |grep encr

file security status: not encrypted

No-no-no... :) Once this output will changed and what we will do?

comment:6 follow-up: ↓ 7 Changed 14 years ago by slavazanko

may be relative to #1685

comment:7 in reply to: ↑ 6 Changed 14 years ago by andrew_b

  • Status changed from new to closed
  • Version 4.6.2 deleted
  • Resolution set to duplicate
  • Milestone 4.7 deleted

Replying to slavazanko:

may be relative to #1685

Yes. Closed as duplicate.

Note: See TracTickets for help on using tickets.