[Bug 1225790] Re: --exclude can create an invalid index
Sworddragon
1225790 at bugs.launchpad.net
Mon Sep 16 01:23:08 UTC 2013
I have figured out that this happens because of Bash's filename
expansion. Using ' around the string prevents this behavior.
** Changed in: tar (Ubuntu)
Status: New => Invalid
--
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:
Invalid
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