This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH] Fix utimes (was Re: utimes())
On Thu, Jul 31, 2003 at 02:47:35PM +0200, Jakub Jelinek wrote:
> The testcase is wrong, you are passing 3 uninitialized values to utimes.
> But sysdeps/unix/sysv/linux/utimes.c is wrong as well, it will set
> actime and modtime to either 1 (unless tvp.tv_sec+tv_usec is very low).
> 2003-07-31 Jakub Jelinek <email@example.com>
> * sysdeps/unix/sysv/linux/utimes.c (__utimes): Add parens so that
> actime and modtime are computed properly.
Thanks, that fixed it.
There is similar code in sysdeps/unix/sysv/linux/futimes.c and
sysdeps/posix/utimes.c that may also be affected.