Subject: PR/18840 CVS commit: src/bin/pax
To: None <christos@netbsd.org, gnats-admin@netbsd.org,>
From: Christos Zoulas <christos@netbsd.org>
List: netbsd-bugs
Date: 04/24/2005 01:46:02
The following reply was made to PR bin/18840; it has been noted by GNATS.

From: Christos Zoulas <christos@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/18840 CVS commit: src/bin/pax
Date: Sun, 24 Apr 2005 01:45:04 +0000 (UTC)

 Module Name:	src
 Committed By:	christos
 Date:		Sun Apr 24 01:45:04 UTC 2005
 
 Modified Files:
 	src/bin/pax: ar_io.c ar_subs.c extern.h pax.c
 
 Log Message:
 PR/18759: FUKAUMI Naoki: pax/tar dot-dot handling broken
 PR/18840: Frederick Bruckman:  Fix for PR/18663 incomplete pax symlink handling
 
 This patch makes ``--insecure'' do something. Now if ``--insecure''
 is not set (the default) we do a realpath(3) in all the pathnames
 that we are trying to create and if either realpath fails, or the
 path is outside our working directory, we print a warning and die.
 This maybe too strict and might fail on valid archives that create
 symlinks and directories in the wrong order.
 
 
 To generate a diff of this commit:
 cvs rdiff -r1.44 -r1.45 src/bin/pax/ar_io.c
 cvs rdiff -r1.36 -r1.37 src/bin/pax/ar_subs.c src/bin/pax/pax.c
 cvs rdiff -r1.47 -r1.48 src/bin/pax/extern.h
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.