]> Zhao Yanbai Git Server - minix.git/commitdiff
Also apply sub-second UTIME to libpuffs
authorAntoine Leca <Antoine.Leca.1@gmail.com>
Sun, 7 Apr 2013 08:44:49 +0000 (10:44 +0200)
committerCharlie Root <root@hppc359.few.vu.nl>
Fri, 12 Apr 2013 09:11:59 +0000 (11:11 +0200)
lib/libpuffs/time.c

index a5a26727f477901fcee1573084694ec35e597ffe..b6e11fcb5337d540ae5df7d252178301620015c0 100644 (file)
@@ -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)