mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Enhancements to uzip.in
This commit is contained in:
parent
15942add41
commit
03f1a9601b
@ -3,6 +3,9 @@
|
||||
* ftpfs.c (dir_load): taken it out, it needs to correctly provide
|
||||
parent, this way it breaks things.
|
||||
|
||||
* uzip.in: change by Dmitry Borodaenko <d.borodaenko@belcaf.com> to
|
||||
display zip files in fat and ntf formats
|
||||
|
||||
2000-08-04 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
|
||||
|
||||
* ftpfs.c (dir_load): add . and .. to ftpfs listings, courtesy of
|
||||
|
@ -24,7 +24,7 @@ if test -n "$XZIPINFO"; then
|
||||
$XZIPINFO -l "$1" | @AWK@ -v uid=${UID-0} -v zipfile="$1" -v xunzip=${XUNZIP-unzip} '
|
||||
/^Archive/ { next }
|
||||
/^[0-9]*\ file/ { next }
|
||||
/unx/ {
|
||||
/(unx|fat|ntf)/ {
|
||||
split($0,a,":")
|
||||
nam = substr(a[2],4)
|
||||
if ($1 ~ /^l/ ) {
|
||||
@ -36,6 +36,11 @@ if ($1 ~ /^l/ ) {
|
||||
arrow=""
|
||||
linkname=""
|
||||
}
|
||||
#if ($1 ~ /^d/ ) -- not okay -- this would break empty directories --pavel
|
||||
# next
|
||||
|
||||
if (length($1) == 7)
|
||||
$1 = "-rw-r--r--"
|
||||
|
||||
if (nam ~ /^\^/)
|
||||
nam=substr(nam, 2)
|
||||
|
Loading…
Reference in New Issue
Block a user