Subject: CVS commit: src/bin/pax
To: None <source-changes@NetBSD.org>
From: Matt Thomas <matt@netbsd.org>
List: source-changes
Date: 02/12/2004 22:19:20
Module Name:	src
Committed By:	matt
Date:		Thu Feb 12 22:19:20 UTC 2004

Modified Files:
	src/bin/pax: file_subs.c pax.h

Log Message:
When restoring files from an archive, initially restore to a temp-file and
once it has been instantiated correctly, rename it to desired name.  This
prevents the problem of partially created files being accessed before they
are complete.  If said file is a shared library, that can cause ramdon core
dumps.


To generate a diff of this commit:
cvs rdiff -r1.36 -r1.37 src/bin/pax/file_subs.c
cvs rdiff -r1.22 -r1.23 src/bin/pax/pax.h

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