Subject: CVS commit: [netbsd-1-5] src/gnu/usr.bin/tar
To: None <source-changes@netbsd.org>
From: SAITOH Masanobu <msaitoh@netbsd.org>
List: source-changes
Date: 03/27/2003 10:35:15
Module Name:	src
Committed By:	msaitoh
Date:		Thu Mar 27 08:35:15 UTC 2003

Modified Files:
	src/gnu/usr.bin/tar [netbsd-1-5]: extract.c

Log Message:
Apply patch (requested by wennmach in ticket #38):

 If an entry for a directory into which files are to be extracted is
 missing in an archive, tar handles this by noticing it, and creating
 the necessary directory itself. Since the mode for that directory is
 not regietered in the incomplete archive, tar creates these
 directories mode 0777, expecting the user's umask to strip of all
 unwanted permission bits. However, if tar is called with the -p
 option (preserve modes) the umask is cleared, and thus directories not
 contained in the archive are created mode 0777. The attached patch
 fixes this by honouring the umask in this special case.


To generate a diff of this commit:
cvs rdiff -r1.8 -r1.8.10.1 src/gnu/usr.bin/tar/extract.c

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