Hello, I've incurred in a bug in GNU tar, happening at least from version 1.17 and still present in current version 1.28. The issue is: when using option "--wildcards" and the archive contains more than 255 files, some files are silentkly skipped from commands such as listing (-t) and extraction (-x).
This is a reproducible testcase: $ mkdir files $ for i in `seq -w 800`; do touch files/$i; done --> generate 800 files named from 001 to 800 $ ls -1 files/ |wc -l --> 800 $ tar -cf f.tar files/* $ tar -tf f.tar |wc -l --> 800 $ tar --wildcards -tf f.tar '*' |wc -l --> 797 By analyzing output from tar --wildcards -tf f.tar '*' it can be seen that files n. 256, 512 and 768 are missing. I'm working on Solaris SPARC 5.9; tar was compiled from sources with Sun C compiler 5.8. Regards, ROMANO MASPERO Project Service Leader SS IT Vodafone & Wireline Ericsson Centro Direzionale Milanofiori - Strada 2, Palazzo C3 20090 - Assago (MI), Italy [email protected]<mailto:[email protected]> www.ericsson.com<http://www.ericsson.com>
