diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-09-17 09:18:37 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-09-17 09:18:37 +0000 |
commit | 3402852c2c478213b086648eab9848a35b7f5dbf (patch) | |
tree | bf17d7bffb3e9c0c0dd227df67e3f1e49d7d0476 /sysdeps/unix/sysv/linux/utimes.c | |
parent | a4db3439f1177cf5c5ceb80bfa3f3a2cef00fc0e (diff) | |
download | glibc-3402852c2c478213b086648eab9848a35b7f5dbf.tar glibc-3402852c2c478213b086648eab9848a35b7f5dbf.tar.gz glibc-3402852c2c478213b086648eab9848a35b7f5dbf.tar.bz2 glibc-3402852c2c478213b086648eab9848a35b7f5dbf.zip |
Update.
2003-09-17 Ulrich Drepper <drepper@redhat.com>
* sysdeps/posix/utimes.c (__utimes): Truncate instead of round.
* sysdeps/unix/sysv/linux/utimes.c (__utimes): Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/utimes.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/utimes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/utimes.c b/sysdeps/unix/sysv/linux/utimes.c index e4798ce83c..d777672125 100644 --- a/sysdeps/unix/sysv/linux/utimes.c +++ b/sysdeps/unix/sysv/linux/utimes.c @@ -47,8 +47,8 @@ __utimes (const char *file, const struct timeval tvp[2]) if (tvp != NULL) { times = &buf; - buf.actime = tvp[0].tv_sec + (tvp[0].tv_usec + 500000) / 1000000; - buf.modtime = tvp[1].tv_sec + (tvp[1].tv_usec + 500000) / 1000000; + buf.actime = tvp[0].tv_sec + tvp[0].tv_usec / 1000000; + buf.modtime = tvp[1].tv_sec + tvp[1].tv_usec / 1000000; } else times = NULL; |