From owner-freebsd-ports Fri Dec 3 19:40:22 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 30BA31532C for ; Fri, 3 Dec 1999 19:40:20 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id TAA39124; Fri, 3 Dec 1999 19:40:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from h0050da20495b.ne.mediaone.net (h0050da20495b.ne.mediaone.net [24.218.93.188]) by hub.freebsd.org (Postfix) with ESMTP id 246B31530D for ; Fri, 3 Dec 1999 19:38:43 -0800 (PST) (envelope-from kan@h0050da20495b.ne.mediaone.net) Received: (from kan@localhost) by h0050da20495b.ne.mediaone.net (8.9.3/8.9.3) id WAA12247; Fri, 3 Dec 1999 22:38:09 -0500 (EST) (envelope-from kan) Message-Id: <199912040338.WAA12247@h0050da20495b.ne.mediaone.net> Date: Fri, 3 Dec 1999 22:38:09 -0500 (EST) From: kabaev@mediaone.net Reply-To: ak03@gte.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/15250: misc/mc uzip vfs fix Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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