Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Wed, 14 Nov 2001 22:08:34 +0100 From: Corinna Vinschen To: cygwin Subject: Re: utime Bug? Message-ID: <20011114220834.J27452@cygbert.vinschen.de> Mail-Followup-To: cygwin References: <17831213001 DOT 20011114231400 AT logos-m DOT ru> <20011114203038 DOT 54936 DOT qmail AT web13903 DOT mail DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011114203038.54936.qmail@web13903.mail.yahoo.com>; from chadfowler@yahoo.com on Wed, Nov 14, 2001 at 12:30:38PM -0800 On Wed, Nov 14, 2001 at 12:30:38PM -0800, chad fowler wrote: > #include > #include > #include > 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:cygwin AT cygwin DOT com 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/