diff options
-rw-r--r-- | libdiskfs/file-utimes.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libdiskfs/file-utimes.c b/libdiskfs/file-utimes.c index 39fac504..29839fc9 100644 --- a/libdiskfs/file-utimes.c +++ b/libdiskfs/file-utimes.c @@ -28,6 +28,9 @@ diskfs_S_file_utimes (struct protid *cred, ({ if (!(err = fshelp_isowner (&np->dn_stat, cred->user))) { + /* Flush pending updates first. */ + diskfs_set_node_times (np); + if (atime.microseconds == -1) np->dn_set_atime = 1; else |