On Wed, Nov 14, 2001 at 12:30:38PM -0800, chad fowler wrote: > #include <utime.h> > #include <sys/stat.h> > #include <sys/types.h> > int main() > { > struct utimbuf s; > struct utimbuf s2; > struct stat info; > s.actime = 0; > s.modtime = 1; > utime ("./x", &s); > stat("./x",&info); > printf(" utime.file access time is %ld\n", > info.st_atime); // prints "1". I would expect "0". > s.actime = 3; > s.modtime = 1; > utime ("./x", &s); > stat("./x",&info); > printf(" utime.file access time is %ld\n", > info.st_atime); // prints "3", which is both expected > and inconsistent with the one above. > }
Thanks for that nice testcase. I could easily track it down and that problem is fixed in the Cygwin CVS repository in a few minutes. Thanks again, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/