[BUG] extfs: uzip script + password protected zip files

Pavel Tsekov ptsekov at gmx.net
Thu Nov 28 18:28:10 UTC 2002


Hello,

If someone tries to view,extract,edit,etc a file from a password protected
zip archive with MC the program will hang badly. MC doesnt hang actually but
is waiting for unzip  which waits the user to enter a password. I assume that
this problem is also there for other archive formats which support password
protection.

I've checked the zipinfo manual page and there is an easy way to find out if
an archive is encrypted or not:

       The fifth field consists of two characters, either of which may take
on
       several values.  The first character may be either `t' or `b',
indicat-
       ing  that zip believes the file to be text or binary, respectively;
but
       if the file is encrypted, zipinfo notes this fact by  capitalizing 
the
       character  (`T'  or  `B').

So if the uzip script is changed to inform the vfs layer that there is and
encrypted file in the archive then the vfs layer should be modified
aproapriately to handle the password input or just to fail further operations on the
encrypted file.

I haven't still looked at the code and I dont know if this is a task which
can be completed fairly easy and without heavy modifications to the code.

Any thoughts ? Had someone tried in the past to fix this ? Any hints ? :)

Thanks!

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!




More information about the mc-devel mailing list