http://bugzilla.opensuse.org/show_bug.cgi?id=918487
Vitezslav Cizek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |IN_PROGRESS
CC| |vcizek@suse.com
--- Comment #2 from Vitezslav Cizek ---
What happens:
Tar prepares its list from the -T option immediately when it encounters -T on
the command line.
It stores the value of the recursive_option along that data.
The --no-recursive parameter hasn't been parsed yet and the the recursive
option is on by default.
So it thinks it'll have to work recursively on the files.
And it adds each directory recursively:
# find test
test
test/D
test/D/c
test/D/D2
test/b
# cat files
./test
./test/D
./test/D/D2
# tar -T files --no-r -cvf skeleton.tar
./test/
./test/D/
./test/D/c
./test/D/D2/
./test/b
./test/D/
./test/D/c
./test/D/D2/
./test/D/D2/
^^^ here test/D/D2 got archived 3 times.
There's a simple workaround:
Add the --no-recursive option in front of the -T.
--
You are receiving this mail because:
You are on the CC list for the bug.