please test: coreutils-5.90-3

Corinna Vinschen
Thu Oct 20 19:02:00 GMT 2005

On Oct 20 06:17, Eric Blake wrote:
> Hash: SHA1
> According to Corinna Vinschen on 10/19/2005 11:11 AM:
> >>utimes(dest,...);  // at this point, timestamp is correct
> >>fchmod(dest_desc,...);
> >>close(dest_desc);  // oops, timestamp changed
> > 
> > 
> > Apparently NT overwrites the mtime timestamp on close, as long as write
> > buffers are not written to disk at that time.  Chris had an idea how to
> > work around that in Cygwin so that it should work in most cases now.
> > Please try the latest snapshot from
> Slick trick of searching for an open write descriptor visiting the same
> file.  But it begs the question - why not go one step further and
> create/export futimes(), so that the application can inform cygwin which
> descriptor to use, bypassing the search?

I've implemented futimes and lutimes today.  For testing futimes I
recompiled coreutils 5.90 which happily jumped to use futimes now.
Give it a try.


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

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list