From owner-freebsd-bugs Wed Oct 16 11:50: 4 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F301F37B401 for ; Wed, 16 Oct 2002 11:50:01 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4201243EB1 for ; Wed, 16 Oct 2002 11:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9GIo1x3097554 for ; Wed, 16 Oct 2002 11:50:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9GIo1ij097553; Wed, 16 Oct 2002 11:50:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6670F37B401 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: gnu/44146: patch for GNU tar which may solve PR bin/43575 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 16 11:50:00 PDT 2002 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message