diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-10-27 19:50:56 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-10-27 19:50:56 +0200 |
commit | 911b68f336b3194f7d54bcc3cc0d5ba8614e149e (patch) | |
tree | dd9ef1e27c3cbce4ec85a01077f0f9a43d609be9 /libdiskfs/file-utimes.c | |
parent | 902f0a78b43c75bdb125a8f1c11a3fbf2595ce35 (diff) | |
download | hurd-911b68f336b3194f7d54bcc3cc0d5ba8614e149e.tar.gz hurd-911b68f336b3194f7d54bcc3cc0d5ba8614e149e.tar.bz2 hurd-911b68f336b3194f7d54bcc3cc0d5ba8614e149e.zip |
libdiskfs: Make utimes RPC flush pending timestamp updates
Thanks Kalle Olavi Niemitalo for the notice.
* libdiskfs/file-utimes.c (diskfs_S_file_utimes): Call diskfs_set_node_times
before setting node timestamps.
Diffstat (limited to 'libdiskfs/file-utimes.c')
-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 |