From nobody@FreeBSD.org  Wed Oct 16 11:42:20 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6670F37B401
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 16 Oct 2002 11:42:20 -0700 (PDT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CF75343EA9
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 16 Oct 2002 11:42:19 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.6/8.12.6) with ESMTP id g9GIgJ7R043570
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 16 Oct 2002 11:42:19 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.6/8.12.6/Submit) id g9GIgJXf043569;
	Wed, 16 Oct 2002 11:42:19 -0700 (PDT)
Message-Id: <200210161842.g9GIgJXf043569@www.freebsd.org>
Date: Wed, 16 Oct 2002 11:42:19 -0700 (PDT)
From: Liu Kang <lazykang@hotmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: patch for GNU tar which may solve PR bin/43575
X-Send-Pr-Version: www-1.0

>Number:         44146
>Category:       gnu
>Synopsis:       patch for GNU tar which may solve PR bin/43575
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 16 11:50:00 PDT 2002
>Closed-Date:    Sun Dec 01 04:54:42 PST 2002
>Last-Modified:  Sun Dec 01 04:54:42 PST 2002
>Originator:     Liu Kang
>Release:        4.7 & 5
>Organization:
Beijing Polytechnic University
>Environment:
FreeBSD cnproxy.bjpu.edu.cn 4.7-STABLE FreeBSD 4.7-STABLE #14: Wed Oct 16 01:33:18 CST 2002     lazy@cnproxy.bjpu.edu.cn:/usr/obj/usr/src/sys/CNPROXY  i386      
>Description:
      redhat released a patch for gnu tar, which could fix the problem described in PR bin/43575,CAN-2001-1267 & CAN-2002-0399 . I've  analysed the code and tested the patch in my computer, it might be the best way to solve the problem.

>How-To-Repeat:
      use the script in PR bin/43575 
>Fix:
Here is redhat's patch:

--- tar-1.13.25/src/misc.c.orig Mon Aug 27 00:14:26 2001
+++ tar-1.13.25/src/misc.c      Mon May 27 11:29:31 2002
@@ -214,6 +214,13 @@
            return 0;
        }
       while (! ISSLASH (*p));
+
+      do
+       {
+         if (! *p++)
+           return 0;
+       }
+      while ( ISSLASH (*p));
     }
 }
>Release-Note:
>Audit-Trail:

From: Colin Percival <colin.percival@wadham.ox.ac.uk>
To: freebsd-gnats-submit@FreeBSD.org, lazykang@hotmail.com
Cc: sobomax@FreeBSD.org
Subject: Re: gnu/44146: patch for GNU tar which may solve PR bin/43575
Date: Sun, 01 Dec 2002 10:44:23 +0000

    Given that bin/43575 is now closed, can this PR also be closed?
 
 Colin Percival
 
State-Changed-From-To: open->closed 
State-Changed-By: keramida 
State-Changed-When: Sun Dec 1 04:50:47 PST 2002 
State-Changed-Why:  

Yes, this PR can now be closed.  I'm not sure if sobomax@ had seen 
the patch posted here, since filing a new PR might go unnoticed. 
Thank you very much for your interest in improving FreeBSD and the 
work you had done before sending this bug report.  In the future, 
please post your comments for existing PRs in the audit trail of 
those PRs.  You can do that easily, by sending an email message to 
bug-followup@freebsd.org that has a subject like: 

Subject: Re: gnu/6667: Patch for tar problems 

When the subject of a PR followup starts with "Re: category/number" 
the gnats tools at FreBSD.org will do the Right Thing(TM) and add 
it to the audit trail of an existing PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=44146 
>Unformatted:
