From: Antoine Leca Date: Sun, 7 Apr 2013 08:44:49 +0000 (+0200) Subject: Also apply sub-second UTIME to libpuffs X-Git-Tag: v3.3.0~1040 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=c979136e4e4b826717d721f720ad5c426fa3773e;p=minix.git Also apply sub-second UTIME to libpuffs --- diff --git a/lib/libpuffs/time.c b/lib/libpuffs/time.c index a5a26727f..b6e11fcb5 100644 --- a/lib/libpuffs/time.c +++ b/lib/libpuffs/time.c @@ -30,9 +30,10 @@ int fs_utime() return(EINVAL); puffs_vattr_null(&va); - va.va_atime.tv_nsec = va.va_mtime.tv_nsec = 0; va.va_atime.tv_sec = fs_m_in.REQ_ACTIME; + va.va_atime.tv_nsec = fs_m_in.REQ_ACNSEC; va.va_mtime.tv_sec = fs_m_in.REQ_MODTIME; + va.va_mtime.tv_nsec = fs_m_in.REQ_MODNSEC; va.va_ctime = clock_timespec(); if (global_pu->pu_ops.puffs_node_setattr(global_pu, pn, &va, pcr) != 0)