From nobody  Fri Apr 17 14:56:02 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id OAA09072;
          Fri, 17 Apr 1998 14:56:02 -0700 (PDT)
          (envelope-from nobody)
Message-Id: <199804172156.OAA09072@hub.freebsd.org>
Date: Fri, 17 Apr 1998 14:56:02 -0700 (PDT)
From: darth@vader.dk
To: freebsd-gnats-submit@freebsd.org
Subject: Gnu tar not working properly with the -G option
X-Send-Pr-Version: www-1.0

>Number:         6338
>Category:       gnu
>Synopsis:       Gnu tar not working properly with the -G option
>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:   Fri Apr 17 15:00:02 PDT 1998
>Closed-Date:    Tue Aug 13 11:05:10 PDT 2002
>Last-Modified:  Tue Aug 13 11:05:10 PDT 2002
>Originator:     Chris Larsen
>Release:        2.2.5
>Organization:
Babel: Internet Caf
>Environment:
FreeBSD ns.babel.dk 2.2.5-RELEASE FreeBSD 2.2.5-RELEASE #1: Sat Apr  4 22:18:38 CEST 1998     vader@ns.babel.dk:/usr/src/sys/compile
/PixieOS  i386
>Description:
When using the -G option of 'tar' the operation gives strange error:
tar: Can't write to (null) : Bad address

>How-To-Repeat:
Example script:
"
#!/bin/csh
# Dump thingie
set now = `date -u`
set then = `cat date.dump`

tar -G -z -c -v \
 -f /home/backup/incr.tgz \
 -N "$then" \
 -V "Dump from $then to $now" \
 /home/vader1

echo $now > date.dump
"
Example output:
"
Dump from Fri Apr 17 02:23:53 GMT 1998 to Fri Apr 17 21:51:27 GMT 1998
tar: Directory /home/vader1/bin is new
tar: Directory /home/vader1/etc is new
tar: Removing leading / from absolute path names in the archive.
home/vader1/
home/vader1/bin/
home/vader1/etc/
home/vader1/bin/compress
home/vader1/bin/cpio
home/vader1/bin/gzip
home/vader1/bin/ls
home/vader1/bin/tar
home/vader1/bin/zcat
tar: Can't write to (null) : Bad address
"

tar --version -> "GNU tar version 1.11.2"

nothing is broken, as far as i can examine, the tar archive works.


>Fix:
Solution: 
Upgrade to version "tar (GNU tar) 1.12", solves the problem.

Time to do an upgrade of the distributed binary ? or is it fixed in 3.x ?


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: schweikh 
State-Changed-When: Tue Aug 13 11:02:36 PDT 2002 
State-Changed-Why:  
5-current uses GNU tar 1.13.x which should not have this problem. It's 
not clear to me if this will be merged to 4-stable at all. I suggest you 
use the POSIX/IEEE/Opengroup standardize tool pax(1) for your archiving 
needs. 

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