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:
Konstantin Belousov 2009-08-26 14:32:37 +00:00
parent ed2dabfc68
commit 4f4946d337
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196560

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