| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| 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 <cygwin AT cygwin DOT com> |
| To: | cygwin <cygwin AT cygwin DOT com> |
| Subject: | Re: utime Bug? |
| Message-ID: | <20011114220834.J27452@cygbert.vinschen.de> |
| Mail-Followup-To: | cygwin <cygwin AT cygwin DOT com> |
| 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 |
| 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 <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: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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |