summaryrefslogtreecommitdiff
path: root/libdiskfs/file-utimes.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/file-utimes.c')
-rw-r--r--libdiskfs/file-utimes.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libdiskfs/file-utimes.c b/libdiskfs/file-utimes.c
index 326980c1..80a56a44 100644
--- a/libdiskfs/file-utimes.c
+++ b/libdiskfs/file-utimes.c
@@ -26,11 +26,12 @@ diskfs_S_file_utimes (struct protid *cred,
{
CHANGE_NODE_FIELD (cred,
({
- if (!(err = isowner (np, cred)))
+ if (!(err = diskfs_isowner (np, cred)))
{
np->dn_stat.st_atime = atime.seconds;
np->dn_stat.st_mtime = mtime.seconds;
- np->dn_stat.st_ctime = wallclock->seconds;
+ np->dn_set_atime = np->dn_set_mtime = 0;
+ np->dn_set_ctime = 1;
}
}));
}