Description of problem:
tar x -v -J -f ./sosreport-qaredhat.com-20121112055222-56b6.tar.xz --strip-components=2 '*/sos_logs/sosreport-plugin-errors.txt'
tar: */sos_logs/sosreport-plugin-errors.txt: Not found in archive
tar: Exiting with failure status due to previous errors
Without --strip-components file matching works.
This is a regression from 6.3, probably introduced by fix of bug 841308.
Version-Release number of selected component (if applicable):
Always using command above
Steps to Reproduce:
1. use --strip-components together with file matching for extraction
Faile matching fails
File matching should work
(In reply to comment #1)
> Upstream fix:
Yes, I have prepared patch already.
This bug is covered in upstream testsuite.
Relevant test in upstream testsuite:
> 30: mode of extracted directories ok
> 31: extracting symlinks to a read-only dir ok
> 32: restoring mode on existing directory ok
> ===> 33: name matching/transformation ordering ok
> 34: keep-old-files ok
> 35: skip-old-files ok
> 36: single-volume label ok
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.