aboutsummaryrefslogtreecommitdiff
path: root/libtrivfs/file-utimes.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtrivfs/file-utimes.c')
-rw-r--r--libtrivfs/file-utimes.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libtrivfs/file-utimes.c b/libtrivfs/file-utimes.c
index 7c5eaf43..d71c169f 100644
--- a/libtrivfs/file-utimes.c
+++ b/libtrivfs/file-utimes.c
@@ -45,12 +45,18 @@ trivfs_S_file_utimens (struct trivfs_protid *cred,
time_value_t atim, mtim;
if (atime.tv_nsec == UTIME_NOW)
- atim.microseconds = -1;
+ {
+ atim.seconds = -1;
+ atim.microseconds = -1;
+ }
else
TIMESPEC_TO_TIME_VALUE (&atim, &atime);
if (mtime.tv_nsec == UTIME_NOW)
- mtim.microseconds = -1;
+ {
+ mtim.seconds = -1;
+ mtim.microseconds = -1;
+ }
else
TIMESPEC_TO_TIME_VALUE (&mtim, &mtime);