[Top][All Lists]

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

Re: [Bug-tar] Bug regarding --exclude in 1.29

From: Christian Ehrhardt
Subject: Re: [Bug-tar] Bug regarding --exclude in 1.29
Date: Fri, 10 Jun 2016 09:54:48 +0200

thanks Nathan for pointing to that - I remember coming by when looking for known issues but disregarded it at first.

It turns the (new?) position dependency is the reason for my issue as well:

In reference to my testcase:
tar -c -f /tmp/test.tar -C dir subdir --exclude subdir/file
tar -c -f /tmp/test.tar -C dir --exclude subdir/file subdir

So exclude only applied to file specifications following that exclude, but not to any file specifications listed before.

I found the documentation change coming in as commit 196fef9b

I just wondered as this seemed to be a regression for me - but if I understood correctly it was always meant to behave this way which was fixed in 1.28 -> 1.29 right?
Could anybody confirm that last question and if possible point to the commit with the behavioral change?

Thanks in Advance,

Christian Ehrhardt
Software Engineer, Ubuntu Server
Canonical Ltd

On Thu, Jun 9, 2016 at 7:12 PM, Nathan Stratton Treadway <address@hidden> wrote:
On Thu, Jun 09, 2016 at 16:54:02 +0200, Christian Ehrhardt wrote:
> I found and reported the issue in Ubuntu, but no one but me cares so far:
> https://bugs.launchpad.net/debian/+source/tar/+bug/1588690
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826195
> TL;DR:
> 1.28 working
> 1.29 Failing
> So I tried upstream tar from https://www.gnu.org/software/tar/
> ./configure
> make -j4
> rm -rf dir; mkdir -p dir/subdir; touch dir/subdir/file; ./src/tar -c -f
> /tmp/test.tar -C dir subdir --exclude subdir/file; ./src/tar -tf
> /tmp/test.tar subdir/file

This looks like the issue that was discussed on this list recently under
the subject line "tar 1.29 bug: tar ignores --exclude option" (and also
Debian bug#824902).

See, for example:



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]