Bug 6665

Summary: tar fails to properly parse exclude patterns...
Product: [Retired] Red Hat Linux Reporter: bmacy
Component: tarAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: gp, pbrown, strobert, ted.belding
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-01-18 11:14:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description bmacy 1999-11-02 22:28:06 UTC
Assuming a /usr/local/src tree exists try:
tar -cvpf fred.tar --exclude='*/src/*' /usr/local

It still archives /usr/local/src. Same occurs if you use
'-X' flag and refer to a file with the pattern in it.

Excluding /usr/local/src/* does work. This is a change from
RedHat versions 5.0, 5.1, 5.2, and 6.0 and appears to be a
bug.

Comment 1 Preston Brown 2000-01-14 03:43:59 UTC
bero, I can verify this, even with tar-1.13.17-1.  Shall we downgrade?

Comment 2 Bernhard Rosenkraenzer 2000-01-18 11:14:59 UTC
I've passed the bug on to bugs-tar - hope they get it fixed for 1.13.18
in time. I don't really want to downgrade because that would get back some bugs
that were fixed in between.

Comment 3 Bernhard Rosenkraenzer 2000-07-17 15:34:03 UTC
The tar maintainers claim it's not a bug, but a feature (better POSIX
compliance).