bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] tar 1.29 bug: tar ignores --exclude option


From: Ben Caradoc-Davies
Subject: Re: [Bug-tar] tar 1.29 bug: tar ignores --exclude option
Date: Tue, 24 May 2016 23:32:32 +1200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.7.2

[Sorry, I am not a subscriber to the mailing list, so please cc: me in replies]

I have reported via Debian BTS the silent failure of -X / --exclude-from in tar 1.29, including a test fixture, instructions, and output for 1.28 and 1.29. My findings are quite similar to the report on this mailing list for --exclude. I found that excludes working for 1.28 are ignored in 1.29.

Bug#824902: tar: -X / --exclude-from silent failure
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824902

Attached test fixture tar file:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824902;att=1;filename=tar-exclude-from-file-silent-failure.tar.gz;msg=5

Here is the example:

The file "includes" contains:

base

The file "excludes" contains:

dir-2
dir-glob-*

With tar 1.28-2.2, the patterns listed in "excludes" are applied:

$ tar zcvvfTX - includes excludes > /dev/null
drwxrwx--- ben/ben           0 2016-05-21 14:39 base/
drwxrwx--- ben/ben           0 2016-05-21 14:40 base/dir-1/
-rw-rw---- ben/ben           0 2016-05-21 14:40 base/dir-1/file-1

With tar 1.29-1, nothing is excluded:

$ tar zcvvfTX - includes excludes > /dev/null
drwxrwx--- ben/ben           0 2016-05-21 14:39 base/
drwxrwx--- ben/ben           0 2016-05-21 14:40 base/dir-glob-2/
-rw-rw---- ben/ben           0 2016-05-21 14:40 base/dir-glob-2/file-glob-2
drwxrwx--- ben/ben           0 2016-05-21 14:40 base/dir-glob-1/
-rw-rw---- ben/ben           0 2016-05-21 14:40 base/dir-glob-1/file-glob-1
drwxrwx--- ben/ben           0 2016-05-21 14:40 base/dir-2/
-rw-rw---- ben/ben           0 2016-05-21 14:40 base/dir-2/file-2
drwxrwx--- ben/ben           0 2016-05-21 14:40 base/dir-1/
-rw-rw---- ben/ben           0 2016-05-21 14:40 base/dir-1/file-1

So it is appears that it is not just patterns but all excludes that are broken. Adding a prefix "base/" to each line of the file "excludes" does not change anything.

Kind regards,

--
Ben Caradoc-Davies <address@hidden>
Director
Transient Software Limited <http://transient.nz/>
New Zealand



reply via email to

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