svn commit: r196560 - head/sys/kern

Konstantin Belousov kib at FreeBSD.org
Wed Aug 26 14:32:37 UTC 2009


Author: kib
Date: Wed Aug 26 14:32:37 2009
New Revision: 196560
URL: http://svn.freebsd.org/changeset/base/196560

Log:
  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

Modified:
  head/sys/kern/vfs_syscalls.c

Modified: head/sys/kern/vfs_syscalls.c
==============================================================================
--- head/sys/kern/vfs_syscalls.c	Wed Aug 26 11:13:10 2009	(r196559)
+++ head/sys/kern/vfs_syscalls.c	Wed Aug 26 14:32:37 2009	(r196560)
@@ -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) {


More information about the svn-src-head mailing list