Subject: CVS commit: src/bin/pax
To: None <source-changes@NetBSD.org>
From: matthew green <mrg@netbsd.org>
List: source-changes
Date: 04/01/2004 14:54:39
Module Name:	src
Committed By:	mrg
Date:		Thu Apr  1 14:54:39 UTC 2004

Modified Files:
	src/bin/pax: tar.c

Log Message:
redo GNU tar --exclude emulation to actually work the same.  unfortunately,
because alternation (|) isn't available in "pax -s" RE's, we have to pass
four (yes 4!) different patterns:
	.*\/<pattern>$
	.*\/<pattern>\/.*
	^<pattern>$
	^<pattern>\/.*
instead of the more elegant
	(^|.*\/)<pattern>($|\/.*)

fixes a problem reported by simonb.


To generate a diff of this commit:
cvs rdiff -r1.47 -r1.48 src/bin/pax/tar.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.