Description of problem: when using tar from tar-1.22-18.fc13.x86_64 you cannot extract single directory from archive. Example, if the archive contains: foo/file1 foo/file2 foo/file3 bar/file4 you cannot extract just bar directory contents with the following command: 'tar -xf archive.tar --strip-components=1 bar/' anymore. While previos version(tar-1.22-17.fc13.x86_64 and lower) was working as expected. It seems that --strip-components behaviour was changed. It seems that patter matching now is done after stripping. While in previous versions it was done on non stripped file names. Version-Release number of selected component (if applicable): tar-1.22-18.fc13.x86_64 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Thank you for filing the bug! I can confirm the change in behavior, not yet sure if it is a bug or feature. However the current behavior is in par with upstream. The change was introduced by the following commit: http://git.savannah.gnu.org/gitweb/?p=tar.git;a=commitdiff;h=9c194c9
Created attachment 449391 [details] proposed fix
Comment on attachment 449391 [details] proposed fix Works for me ... and doesn't break anything from testsuite (old bug with longnames not reproducable).
fixed in tar-1.23-7.fc15
tar-1.23-6.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/tar-1.23-6.fc14
tar-1.22-19.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/tar-1.22-19.fc13
tar-1.23-6.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update tar'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/tar-1.23-6.fc14
proposed upstream: http://thread.gmane.org/gmane.comp.gnu.tar.bugs/3958
tar-1.22-19.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
Tried out tar-1.22-19.fc13. Everything seems OK now. Thank you!
tar-1.23-6.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
upstream fix: http://git.savannah.gnu.org/cgit/tar.git/commit/?id=28e91b4