[Bug 1225790] [NEW] --exclude can create an invalid index

Sworddragon 1225790 at bugs.launchpad.net
Sun Sep 15 21:33:23 UTC 2013


Public bug reported:

I'm using Ubuntu 13.10 dev with tar 1.26+dfsg-8 and on excluding files
they could get included multiple times. Here is an example:

sworddragon at ubuntu:~$ mkdir /tmp/test
sworddragon at ubuntu:~$ cd /tmp/test
sworddragon at ubuntu:/tmp/test$ mkdir dir
sworddragon at ubuntu:/tmp/test$ echo 0 > dir/test1.txt
sworddragon at ubuntu:/tmp/test$ echo 0 > dir/test2.txt
sworddragon at ubuntu:/tmp/test$ tar --exclude \./dir/*\.txt -Jcf test.txz .
sworddragon at ubuntu:/tmp/test$ tar -xJvf test.txz
./dir/test2.txt
./
./dir/
./dir/test2.txt
./test.txz


./dir/test2.txt should not be included. Also it got included 2 times which will be an invalid index.

** Affects: tar (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to tar in Ubuntu.
https://bugs.launchpad.net/bugs/1225790

Title:
  --exclude can create an invalid index

Status in “tar” package in Ubuntu:
  New

Bug description:
  I'm using Ubuntu 13.10 dev with tar 1.26+dfsg-8 and on excluding files
  they could get included multiple times. Here is an example:

  sworddragon at ubuntu:~$ mkdir /tmp/test
  sworddragon at ubuntu:~$ cd /tmp/test
  sworddragon at ubuntu:/tmp/test$ mkdir dir
  sworddragon at ubuntu:/tmp/test$ echo 0 > dir/test1.txt
  sworddragon at ubuntu:/tmp/test$ echo 0 > dir/test2.txt
  sworddragon at ubuntu:/tmp/test$ tar --exclude \./dir/*\.txt -Jcf test.txz .
  sworddragon at ubuntu:/tmp/test$ tar -xJvf test.txz
  ./dir/test2.txt
  ./
  ./dir/
  ./dir/test2.txt
  ./test.txz

  
  ./dir/test2.txt should not be included. Also it got included 2 times which will be an invalid index.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tar/+bug/1225790/+subscriptions




More information about the foundations-bugs mailing list