Date: Fri, 3 Dec 1999 22:38:09 -0500 (EST) From: kabaev@mediaone.net To: FreeBSD-gnats-submit@freebsd.org Subject: ports/15250: misc/mc uzip vfs fix Message-ID: <199912040338.WAA12247@h0050da20495b.ne.mediaone.net>
next in thread | raw e-mail | index | archive | help
>Number: 15250 >Category: ports >Synopsis: MC fail to show contents of ZIP archives >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 3 19:40:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Alexander N. Kabaev >Release: FreeBSD 4.0-CURRENT i386 >Organization: >Environment: FreeBSD 4.0-CURRENT #1: Fri Dec 3 21:09:11 EST 1999 kan@kan.ne.mediaone.net:/usr/src/sys/compile/KAN >Description: Midnight Commander fails to show contents of ZIP files due to the following two problems: a) it expects to find uzip in /usr/bin b) it has a bug in the AWK code used to parse output for DOS generated ZIP's >How-To-Repeat: Select any ZIP file created on DOS/Windows (i.e. WinZip) and press enter - nothing will happen >Fix: Add the following patch as patch-ai to the misc/mc/patches directory --- vfs/extfs/uzip.in Wed Sep 29 16:39:35 1999 +++ vfs/extfs/uzip.in.new Fri Dec 3 22:17:45 1999 @@ -7,7 +7,7 @@ # # -DZIP=/usr/bin +DZIP=/usr/local/bin XZIP="$DZIP/zip -g" XDZIP="$DZIP/zip -d" XUNZIP="$DZIP/unzip" @@ -67,7 +67,7 @@ if ($8 ~ /\/$/) printf "drwxr-xr-x 1 %-8d %-8d %8d %s %s %s\n", uid, 0, $1, $5, $6, $8 else - printf "-rw-r--r-- 1 %-8d %-8d %8d %s %s %s\n", uid, 0, $1, $5, $6, substr($0, index($0, $7) + length($7 " ") + printf "-rw-r--r-- 1 %-8d %-8d %8d %s %s %s\n", uid, 0, $1, $5, $6, substr($0, index($0, $7) + length($7 " ")) }' 2>/dev/null fi } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912040338.WAA12247>