Hello guys,
I have notice a bug when I try to use tar with options --append and
--verify together. Here is a simple test case:
Create two empty files:
# touch file1 file2
Create an archive:
# tar cpfW archive.tar file1 file2
Verify created archive by listing its content:
# tar -tf archive.tar
file1
file2
Create another empty file:
# touch file3
Append it to the already created archive:
# tar rpfW archive.tar file3
Verify content of the new archive:
# tar -tf archive.tar
file3
As you can see from the output above - file1 and file2 are missing,
only file3 is there.
I have created the archive again with file1 and file2. Tried to append
file3 to the archive without -W option:
# tar rpf archive.tar file3
# tar -tf archive.tar
file1
file2
file3
And success!
It seems that the -W (verify) option doesn't work properly with -r
(append) option.