X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Fri, 24 Apr 2009 18:30:39 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: 2.9 cpio -pm file modification time not retained for new 	directories
Message-ID: <20090424163039.GI8722@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <49F19F8B.7090601@pobox.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <49F19F8B.7090601@pobox.com>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Apr 24 12:16, Michael Ryan wrote:
> Hello,
>
> When I run a command similar to this:
>
>    find srcdir -depth | cpio -pdvm archive-dir
>
> cpio v2.9 does not retain the modification timestamp of non-empty  
> directories under srcdir that do not already exist in archive-dir, i.e.  
> when cpio creates a new non-empty directory under archive-dir its mtime  
> is set to the time of its creation, not the mtime of the directory it  
> copied from srcdir.  If the directory under srcdir is empty (has no  
> files in it) the mtime is retained correctly.

Thanks for the report.  The Cygwin version of cpio has been built from
the vanilla upstream sources of cpio-2.9 and it appears this is an
upstream bug.  I found that already quite a few bugfixes exist for cpio
2.9 and AFAICS this bug should be fixed by one of them as well.

I'm somewhat time constraint in the next couple of days, but I will 
update cpio to all the bugfixes I have available, eventually.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

