[PATCH] Fix utimes (was Re: utimes())

Greg Schafer gschafer@zip.com.au
Thu Jul 31 17:08:00 GMT 2003


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[0].tv_sec+tv_usec is very low).
> 
> 2003-07-31  Jakub Jelinek  <jakub@redhat.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.

Greg



More information about the Libc-alpha mailing list