Subject: Re: kern/26155: stat(2) always returns 0 for atime
To: None <gnats-bugs@gnats.NetBSD.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-bugs
Date: 07/03/2004 23:26:08
On Sat, Jul 03, 2004 at 11:16:44PM +0200, Manuel Bouyer wrote:
> >Description:
> 	This program:
> 
> #include <sys/stat.h>
> 
> main()
> {
>         struct stat st;
> 
>         while (1) {
>                 stat("/etc/passwd", &st);
>                 printf("size %ld atime %ld mtime %ld\n", st.st_size, st.st_atime, st.st_mtime);
>                 sleep(10);
>         }
> }
> 
> 	always return 0 for atime. Tested with file FFS and NFS.

Err, I should have compiled it with -Wall :(
The printf here doesn't to what it's intended for. I closed the PR.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--