From 03f1a9601bf88073be90473a814830dd3b99f3e0 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Tue, 8 Aug 2000 17:20:57 +0000 Subject: [PATCH] Enhancements to uzip.in --- vfs/ChangeLog | 3 +++ vfs/extfs/uzip.in | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index 3447537e3..c3b29282c 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -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 to + display zip files in fat and ntf formats + 2000-08-04 Pavel Machek * ftpfs.c (dir_load): add . and .. to ftpfs listings, courtesy of diff --git a/vfs/extfs/uzip.in b/vfs/extfs/uzip.in index 4108643d4..285fa7832 100644 --- a/vfs/extfs/uzip.in +++ b/vfs/extfs/uzip.in @@ -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)