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
This commit is contained in:
kib 2009-08-26 14:32:37 +00:00
parent cffae4081c
commit 6e8f2df92e

View File

@ -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) {