On 12-11-2025 11:44, Sergey Poznyakoff wrote: > > Command `tar -vuf test.tar -T filelist.txt` unconditionally adds files > > from filelist.txt. > > I cannot reproduce this. Can ypu provide a recipe?
Sure. Here is the simplest form: ~$ cd /tmp/ /tmp$ echo aaa >> aaa /tmp$ echo bbb >> bbb /tmp$ echo /tmp/aaa >> filelist.txt /tmp$ echo /tmp/bbb >> filelist.txt /tmp$ tar -vuf test.tar -T filelist.txt tar: Removing leading `/' from member names /tmp/aaa tar: Removing leading `/' from hard link targets /tmp/bbb :/tmp$ tar -vuf test.tar -T filelist.txt tar: Removing leading `/' from member names /tmp/aaa tar: Removing leading `/' from hard link targets /tmp/bbb :/tmp$ tar -tf test.tar tmp/aaa tmp/bbb tmp/aaa tmp/bbb I figured out that this only reproducible when using absolute paths in 'filelist'. I used '/tmp' here as some universal example, but you can use any directory. If we use relative paths in filelist.txt and: $ tar -vuf test.tar -C /tmp/ -T /tmp/filelist.txt then -u mode works correctly. -- Best regards, MikZyth.
