From nobody@FreeBSD.org  Sun Dec 16 07:20:57 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 087A637B405
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 16 Dec 2001 07:20:57 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id fBGFKvb27323;
	Sun, 16 Dec 2001 07:20:57 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200112161520.fBGFKvb27323@freefall.freebsd.org>
Date: Sun, 16 Dec 2001 07:20:57 -0800 (PST)
From: "Martin P. Hansen" <mph@fabel.dk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Incremental tar archiving using GNU style fails to handle regional chars
X-Send-Pr-Version: www-1.0

>Number:         32902
>Category:       gnu
>Synopsis:       Incremental tar archiving using GNU style fails to handle regional chars
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 16 07:30:01 PST 2001
>Closed-Date:    Thu Aug 22 10:31:11 PDT 2002
>Last-Modified:  Thu Aug 22 10:31:11 PDT 2002
>Originator:     Martin P. Hansen
>Release:        4.1.1-RELEASE
>Organization:
>Environment:
FreeBSD bsd-kools.kools.dk 4.1.1-RELEASE FreeBSD 4.1.1-RELEASE #0: Sat Dec 23 16:02:34 CET 2000     root@argon.lan.dk:/usr/src/sys/compile/KOOLS  i386
>Description:
tar's '-g' option doesn't handle regional chars properly, it archives wheter or not the file is modified.
>How-To-Repeat:
Creating a test tree containing two directories one without extended chars and one with. Put two or more docs in each and try to tar:
tar -g snapshot -cvf test.tar test-tree/
and then
tar -g snapshot -cvf test2.tar test-tree/

The second tar should ofcause not archive anything except some dirs. But will faithfully archive the complete dir with the regional char.
>Fix:
This all happens due a missing increment in un_quote_string() in port.c.

At line 992 "*to_there = tmp;" should be "*to_there++ = tmp;".






>Release-Note:
>Audit-Trail:

From: Sheldon Hearn <sheldonh@starjuice.net>
To: "Martin P. Hansen" <mph@fabel.dk>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: gnu/32902: Incremental tar archiving using GNU style fails to handle regional chars 
Date: Sun, 30 Dec 2001 15:26:33 +0200

 On Sun, 16 Dec 2001 07:20:57 PST, "Martin P. Hansen" wrote:
 
 > >Category:       gnu
 > >Synopsis:       Incremental tar archiving using GNU style fails to handle regional chars
 
 I've asked on the freebsd-audit mailing list for someone to take a look
 at this.
 
 Ciao,
 Sheldon.
State-Changed-From-To: open->closed 
State-Changed-By: johan 
State-Changed-When: Thu Aug 22 10:29:11 PDT 2002 
State-Changed-Why:  
Tar has been upgraded to 1.13.25, which does not 
have this particular file and there is no 
variable named 'to_there' either. 


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