NetBSD Problem Report #29225

From sjg@crufty.net  Fri Feb  4 06:35:04 2005
Return-Path: <sjg@crufty.net>
Received: from void.crufty.net (dsl017-045-159.sfo4.dsl.speakeasy.net [69.17.45.159])
	by narn.netbsd.org (Postfix) with ESMTP id 773FE63B843
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  4 Feb 2005 06:35:04 +0000 (UTC)
Message-Id: <20050204063504.0D50D667D@void.crufty.net>
Date: Thu,  3 Feb 2005 22:35:04 -0800 (PST)
From: sjg@crufty.net
Reply-To: sjg@crufty.net
To: gnats-bugs@netbsd.org
Subject: cpio -pdm does not work
X-Send-Pr-Version: 3.95

>Number:         29225
>Category:       bin
>Synopsis:       cpio -pdm does not work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 04 06:36:00 +0000 2005
>Closed-Date:    Sun Apr 12 07:38:04 +0000 2015
>Last-Modified:  Sun Apr 12 07:38:04 +0000 2015
>Originator:     Simon J. Gerraty
>Release:        NetBSD 2.0
>Organization:
Zen Programming...
>Environment:


System: NetBSD void.crufty.net 2.0 NetBSD 2.0 (GENERIC) #0: Wed Dec 1 10:58:25 UTC 2004 builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:

find . -print | cpio -pdm /some/where

should replicate all files under . to /some/where, except if the file
under the destination is newer.  The -u option can be used to force
the copy.

That's how cpio has always worked and the man page in 2.0 confirms it.

That's not how cpio in 2.0 works though.  Without the -u option, copies
are skipped if the target file *exists*.


>How-To-Repeat:

>Fix:


>Release-Note:

>Audit-Trail:
From: Miwa Susumu <miwarin@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/29225
Date: Wed, 31 Dec 2014 10:53:34 +0900

 % uname -rms
 NetBSD 6.1.5 i386

 I want to see the problem.
 It is an issue that file is not overwritten. What you're saying so?

 If the file exists in dst:
   - file will be overwritten if dst is older.
   - It is skipped if dst is newer.

 The above operation is normal.
 What is the problem?

 -- 
 miwarin

From: "Simon J. Gerraty" <sjg@crufty.net>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, miwarin@gmail.com
Subject: Re: bin/29225
Date: Sat, 11 Apr 2015 12:44:53 -0700

 On Wed, 31 Dec 2014 01:55:00 +0000 (UTC), Miwa Susumu writes:
 >The following reply was made to PR bin/29225; it has been noted by GNATS.
 > I want to see the problem.
 > It is an issue that file is not overwritten. What you're saying so?
 > 
 > If the file exists in dst:
 >   - file will be overwritten if dst is older.
 >   - It is skipped if dst is newer.
 > 
 > The above operation is normal.

 Yes that's how it is supposed to work.
 The PR was filed against NetBSD 2.0 ;-)
 The problem statement was that files were not overwritten even when
 dst is older

 Obviously the issue has been fixed in the last decade.
 It can be closed

From: Miwa Susumu <miwarin@gmail.com>
To: "Simon J. Gerraty" <sjg@crufty.net>
Cc: gnats-bugs@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: bin/29225
Date: Sun, 12 Apr 2015 11:47:34 +0900

 hi.

 2015-04-12 4:44 GMT+09:00 Simon J. Gerraty <sjg@crufty.net>:
 >
 > Obviously the issue has been fixed in the last decade.
 > It can be closed

 oh. I see.
 If we fix problem, must close ticket :-(

 -- 
 miwarin

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Sun, 12 Apr 2015 07:38:04 +0000
State-Changed-Why:
Confirmed fixed, thanks.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.