Subject: Re: bin/31923
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Onno van der Linden <o.vd.linden@quicknet.nl>
List: netbsd-bugs
Date: 11/01/2005 23:22:02
The following reply was made to PR bin/31923; it has been noted by GNATS.

From: Onno van der Linden <o.vd.linden@quicknet.nl>
To: gnats-bugs@netbsd.org
Cc: svs+pr@grep.ru
Subject: Re: bin/31923
Date: Tue, 1 Nov 2005 23:55:54 +0100

 Here's a fix that should work. Tru64 5.1B prints an informational
 message "Not overwriting existing file xxxxx" or something like
 that.
 
 Diff appended,
 
 Onno
 
 
 *** /usr/src/bin/pax/ar_subs.c.orig	Sat Sep 17 10:58:07 2005
 --- /usr/src/bin/pax/ar_subs.c	Tue Nov  1 23:46:53 2005
 ***************
 *** 350,355 ****
 --- 350,360 ----
   			continue;
   		}
   
 + 		if (kflag && (lstat(arcn->name, &sb) == 0)) {
 + 			(void)rd_skip(arcn->skip + arcn->pad);
 + 			continue;
 + 		}
 + 
   		/*
   		 * with -u or -D only extract when the archive member is newer
   		 * than the file with the same name in the file system (no