From kan@h0050da20495b.ne.mediaone.net Fri Dec  3 19:38:46 1999
Return-Path: <kan@h0050da20495b.ne.mediaone.net>
Received: from h0050da20495b.ne.mediaone.net (h0050da20495b.ne.mediaone.net [24.218.93.188])
	by hub.freebsd.org (Postfix) with ESMTP id 246B31530D
	for <FreeBSD-gnats-submit@freebsd.org>; 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
Sender: kan@h0050da20495b.ne.mediaone.net
Reply-To: ak03@gte.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: misc/mc uzip vfs fix  
X-Send-Pr-Version: 3.2

>Number:         15250
>Category:       ports
>Synopsis:       MC fail to show contents of ZIP archives
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec  3 19:40:01 PST 1999
>Closed-Date:    Thu Dec 23 08:31:18 PST 1999
>Last-Modified:  Thu Dec 23 08:33:27 PST 1999
>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:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Thu Dec 23 08:31:18 PST 1999 
State-Changed-Why:  
Committed, thanks! 
>Unformatted:
