NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/26148: tar(1) issues, inconsistencies with GNU tar



The following reply was made to PR bin/26148; it has been noted by GNATS.

From: Matthew Mondor <mm_lists%pulsar-zone.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/26148: tar(1) issues, inconsistencies with GNU tar
Date: Sun, 21 Jun 2009 01:28:55 -0400

 On Sun, 21 Jun 2009 05:15:03 +0000 (UTC)
 David Holland <dholland-bugs%netbsd.org@localhost> wrote:
 
 > The following reply was made to PR bin/26148; it has been noted by GNATS.
 > 
 > From: David Holland <dholland-bugs%netbsd.org@localhost>
 > To: Matthew Mondor <mm_lists%pulsar-zone.net@localhost>
 > Cc: gnats-bugs%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
 > Subject: Re: bin/26148: tar(1) issues, inconsistencies with GNU tar
 > Date: Sun, 21 Jun 2009 05:12:50 +0000
 > 
 >  On Sun, Jun 21, 2009 at 12:32:36AM -0400, Matthew Mondor wrote:
 >   > Please close this old PR of mine, nothing was done about it in the
 >   > official tree but this is an old issue and I have long fixed any script
 >   > expecting the old behaviour.
 >  
 >  I dunno, the behavior described sounds like a bug. Does it still occur?
 >  
 >  -- 
 >  David A. Holland
 >  dholland%netbsd.org@localhost
 >  
 > 
 
 I just tried the following which appears to show that it actually was
 fixed.  The default is still not to follow symbolic links as per the
 man page however, and I also tested extracting with -h and the same
 proper behavior was observed.  This thus probably was another bug
 specifically related to overwriting symbolic links with directories
 which was fixed since.
 
 Thanks
 
 behemoth$ mkdir -p dir dir1
 behemoth$ touch dir/foo
 behemoth$ tar czvf dir.tgz dir/
 dir
 dir/foo
 tar: ustar vol 1, 2 files, 0 bytes read, 10240 bytes written in 1 secs (10240 
bytes/sec)
 behemoth$ rm -rf dir
 behemoth$ ln -s dir1 dir
 behemoth$ ls -l
 lrwxr-x---  1 mmondor  wheel         4 Jun 21 01:22 dir -> dir1
 -rw-r-----  1 mmondor  wheel       146 Jun 21 01:21 dir.tgz
 drwxr-x---  2 mmondor  wheel       512 Jun 21 01:22 dir1
 behemoth$ tar xzvf ./dir.tgz
 dir
 dir/foo
 tar: ustar vol 1, 2 files, 10240 bytes read, 0 bytes written in 1 secs (10240 
bytes/sec)
 behemoth$ ls -l
 lrwxr-x---  1 mmondor  wheel         4 Jun 21 01:21 dir -> dir1
 -rw-r-----  1 mmondor  wheel       146 Jun 21 01:21 dir.tgz
 drwxr-x---  2 mmondor  wheel       512 Jun 21 01:22 dir1
 behemoth$ ls ./dir1/
 foo
 behemoth$ 
 -- 
 Matt
 


Home | Main Index | Thread Index | Old Index