diff options
Diffstat (limited to 'libdiskfs/file-utimes.c')
-rw-r--r-- | libdiskfs/file-utimes.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libdiskfs/file-utimes.c b/libdiskfs/file-utimes.c index b87aa18e..39fac504 100644 --- a/libdiskfs/file-utimes.c +++ b/libdiskfs/file-utimes.c @@ -32,7 +32,8 @@ diskfs_S_file_utimes (struct protid *cred, np->dn_set_atime = 1; else { - np->dn_stat.st_atime = atime.seconds; + np->dn_stat.st_atim.tv_sec = atime.seconds; + np->dn_stat.st_atim.tv_nsec = atime.microseconds * 1000; np->dn_set_atime = 0; } @@ -40,7 +41,8 @@ diskfs_S_file_utimes (struct protid *cred, np->dn_set_mtime = 1; else { - np->dn_stat.st_mtime = mtime.seconds; + np->dn_stat.st_mtim.tv_sec = mtime.seconds; + np->dn_stat.st_mtim.tv_nsec = mtime.microseconds * 1000; np->dn_set_mtime = 0; } |