Hello,
Actually there IS bug with browsing zip files, but it appears only
when viewing files created with MS-Windows zip.
The problem is with zipinfo file permission format (first column).
Compare two examples below (second created with Windows-ZIP):
$ unzip -Z -T b.zip
Archive: b.zip 5357 bytes 3 files
-rw-r--r-- 2.3 unx 9662 tx defN 20031103.164236 test.php
-rwxr-xr-x 2.3 unx 5515 tx defN 20031103.164835 test.htlm
-rw-r--r-- 2.3 unx 630 tx defN 20031103.164827 test.js
3 files, 15807 bytes uncompressed, 4911 bytes compressed: 68.9%
$ unzip -Z -T a.zip
Archive: a.zip 162370 bytes 1 file
-rwxa-- 2.0 fat 167932 b- defX 20050108.140000 test.exe
1 file, 167932 bytes uncompressed, 162255 bytes compressed: 3.4%
The patch (included as attachment) is very simple -- you
need to change only $regex_zipinfo_line variable in file:
/usr/share/mc/extfs/uzip.
Best Regards,
Karol Roslaniec
PS.
mc version: 4.6.0-4.6.1-pre3-1
debian version: 3.1
--- uzip.old 2005-05-07 12:29:06.000000000 +0200
+++ uzip 2005-05-07 12:24:23.000000000 +0200
@@ -36,7 +36,7 @@
# -rw-r--r-- 2.2 unx 2891 tx 1435 defN 20000330.211927 ./edit.html
# (perm) (?) (?) (size) (?) (zippedsize) (method) (yyyy)(mm)(dd)(HH)(MM)
(fname)
-my $regex_zipinfo_line =
qr"^(\S{10})\s+(\d+\.\d+)\s+(\S+)\s+(\d+)\s+(\S\S)\s+(\d+)\s+(\S{4})\s+(\d{4})(\d\d)(\d\d)\.(\d\d)(\d\d)(\d\d)\s(.*)$";
+my $regex_zipinfo_line =
qr"^(\S{7,10})\s+(\d+\.\d+)\s+(\S+)\s+(\d+)\s+(\S\S)\s+(\d+)\s+(\S{4})\s+(\d{4})(\d\d)(\d\d)\.(\d\d)(\d\d)(\d\d)\s(.*)$";
# 2891 Defl:N 1435 50% 03-30-00 21:19 50cbaaf8 ./edit.html
# (size) (method) (zippedsize) (zipratio) (mm)(dd)(yy)(HH)(MM) (cksum) (fname)