Enhancements to uzip.in

This commit is contained in:
Pavel Machek 2000-08-08 17:20:57 +00:00
parent 15942add41
commit 03f1a9601b
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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)