Subject: CVS commit: basesrc/bin/pax
To: None <source-changes@netbsd.org>
From: Rafal Boni <rafal@netbsd.org>
List: source-changes
Date: 11/29/2002 06:54:49
Module Name:	basesrc
Committed By:	rafal
Date:		Fri Nov 29 04:54:49 UTC 2002

Modified Files:
	basesrc/bin/pax: pat_rep.c

Log Message:
Fix lossage with the GNU-tar -X compatibility code: the replacement pattern
code did not properly deal with the fact that the replacement patterns built
by the -X code were on the stack, happily saving pointers into last weeks'
stack into the REPLACE structures.

Now, the replacement string is strdup'ed so it doesn't matter where the
original expression came from or it's lifetime.


To generate a diff of this commit:
cvs rdiff -r1.16 -r1.17 basesrc/bin/pax/pat_rep.c

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