From 9e22f3b8d7fc506ba5a3ae22c44b6c40634fcc79 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Thu, 1 Mar 2001 06:16:20 +0000 Subject: [PATCH] * extfs/uzip.in (mczipfs_list): Allow filenames with colons. Reported by Christian Gennerat. --- vfs/ChangeLog | 5 +++++ vfs/extfs/uzip.in | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index 0f975a8dc..ab24e37fb 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,8 @@ +2001-03-01 Pavel Roskin + + * extfs/uzip.in (mczipfs_list): Allow filenames with colons. + Reported by Christian Gennerat. + 2001-02-28 Pavel Machek * vfs.c (mc_def_ungetlocalcopy): Cleanup of error handling. diff --git a/vfs/extfs/uzip.in b/vfs/extfs/uzip.in index d2b3357a7..408460579 100644 --- a/vfs/extfs/uzip.in +++ b/vfs/extfs/uzip.in @@ -22,8 +22,8 @@ if $XZIPINFO 2>&1 | grep ZipInfo >/dev/null; then # Zipinfo prints errors on stdout. Check mode and time to skip them. /^[^a-z\-]/ { next } ($9 ~ /:/) { -split($0,a,":") -nam = substr(a[2],4) +nam=$0 +sub(/^[^:]+:[^ ]+[ ]+/, "", nam) if ($1 ~ /^l/ ) { arrow=" -> " linkname=""