diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index be2a819b..baccbfdc 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -2291,7 +2291,7 @@ static int ntfs_fuse_utimens(const char *path, const struct timespec tv[2]) #if !KERNELPERMS | (POSIXACLS & !KERNELACLS) if (ntfs_allowed_as_owner(&security, ni) || ((tv[0].tv_nsec == UTIME_NOW) - && (tv[0].tv_nsec == UTIME_NOW) + && (tv[1].tv_nsec == UTIME_NOW) && ntfs_allowed_access(&security, ni, S_IWRITE))) { #endif ntfs_time_update_flags mask = NTFS_UPDATE_CTIME;