Hi,
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:
BAD:
tar -c -f /tmp/test.tar -C dir subdir --exclude subdir/file
FIXED:
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


Christian Ehrhardt
Software Engineer, Ubuntu Server
Canonical Ltd

On Thu, Jun 9, 2016 at 7:12 PM, Nathan Stratton Treadway <
nathanst+bug...@ontko.com> 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:
>   http://lists.gnu.org/archive/html/bug-tar/2016-05/msg00022.html
>
>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824902
>
>
>                                                         Nathan
>
>
> ----------------------------------------------------------------------------
> Nathan Stratton Treadway  -  natha...@ontko.com  -  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