diff options
author | kib <kib@FreeBSD.org> | 2009-08-26 14:32:37 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2009-08-26 14:32:37 +0000 |
commit | 6e8f2df92e2b3d946ed006f8f27144134d5f782b (patch) | |
tree | 13cc391ef229640287da532a1036f75e24620ab0 /sys/kern | |
parent | cffae4081c583cdd717fea7e919adb10ac3386aa (diff) | |
download | FreeBSD-src-6e8f2df92e2b3d946ed006f8f27144134d5f782b.zip FreeBSD-src-6e8f2df92e2b3d946ed006f8f27144134d5f782b.tar.gz |
Honor the vfs.timestamp_precision sysctl settings for utimes(path, NULL)
and similar calls.
Obtained from: Petr Salinger, Debian GNU/kFreeBSD, Debian bug #489894
MFC after: 3 days
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_syscalls.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index f5705f9..ed7f999 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -3134,8 +3134,7 @@ getutimes(usrtvp, tvpseg, tsp) int error; if (usrtvp == NULL) { - microtime(&tv[0]); - TIMEVAL_TO_TIMESPEC(&tv[0], &tsp[0]); + vfs_timestamp(&tsp[0]); tsp[1] = tsp[0]; } else { if (tvpseg == UIO_SYSSPACE) { |