Package: tar
Version: 1.29-1
Severity: normal

Dear Maintainer,

the -X / --exclude-from option silently fails in 1-29-1. Consider this example
(see attached tar file):

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

I note that this option no longer appears in the 1.29-1 man page, but I could
not find anything in the upstream changelogs:
1.29: https://savannah.gnu.org/forum/forum.php?forum_id=8545
1.28 https://savannah.gnu.org/forum/forum.php?forum_id=8037

Kind regards,
Ben.



-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages tar depends on:
ii  libacl1      2.2.52-3
ii  libc6        2.22-9
ii  libselinux1  2.5-3

tar recommends no packages.

Versions of packages tar suggests:
ii  bzip2        1.0.6-8
ii  ncompress    4.2.4.4-15
pn  tar-scripts  <none>
ii  xz-utils     5.1.1alpha+20120614-2.1

-- no debconf information

Attachment: tar-exclude-from-file-silent-failure.tar.gz
Description: application/gzip

Reply via email to