bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] Different behavior between versions with option --listed-i


From: Nathan Stratton Treadway
Subject: Re: [Bug-tar] Different behavior between versions with option --listed-incremental
Date: Tue, 26 Mar 2013 14:19:22 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

On Fri, Mar 22, 2013 at 18:05:26 +0100, Piotr Rotter wrote:
> Script:
> 
> mkdir aaa
> echo 'aaa' > aaa/aaa
> echo 'aaa' > aaa/bbb
> tar -g test.snar -vcf test.0.tar aaa
> echo 'aaa' > aaa/ccc
> tar -g test.snar -vcf test.1.tar aaa
> rm -f aaa/aaa
> tar -g test.snar -vcf test.2.tar aaa
> mkdir ext
> tar -g test.snar -vxf test.0.tar -C ext/
> tar -g test.snar -vxf test.1.tar -C ext/
> tar -g test.snar -vxf test.2.tar -C ext/
> 
> version 1.23 before that put to stdout  "tar: Deleting `aaa/aaa'"
> version 1.26 wasn't do that, and file aaa/aaa still exists.

I get the same behavior as you report (also using Ubuntu's GNU tar 1.26).

However, the "aaa" file is deleted correctly if I don't use the -C
option:

  $ mkdir ext
  $ cd ext
  $ tar -G -vxf ../test.0.tar
  aaa/
  aaa/aaa
  aaa/bbb
  $ tar -G -vxf ../test.1.tar
  aaa/
  aaa/ccc
  $ tar -G -vxf ../test.2.tar
  aaa/
  tar: Deleting `aaa/aaa'
 

Interestingly, even using -C, "ccc" is deleted if I then extract
test.0.tar a second time:

  $ cd ..
  $ tar -G -vxf test.0.tar -C ext/
  aaa/
  tar: Deleting `aaa/ccc'
  aaa/aaa
  aaa/bbb

But I'm not sure off hand what that tells us...

(For what it's worth, I tried the same tests with tar built from the
latest git and got the same results.)


                                                Nathan

----------------------------------------------------------------------------
Nathan Stratton Treadway  -  address@hidden  -  Mid-Atlantic region
Ray Ontko & Co.  -  Software consulting services  -   http://www.ontko.com/
 GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt   ID: 1023D/ECFB6239
 Key fingerprint = 6AD8 485E 20B9 5C71 231C  0C32 15F3 ADCD ECFB 6239



reply via email to

[Prev in Thread] Current Thread [Next in Thread]