Fixed checking whether utimensat() applies to current atime

The check was applied to mtime instead of atime
edge.strict_endians
Jean-Pierre André 2014-03-11 11:03:06 +01:00
parent 543b17b7ef
commit cfab9d64c6
1 changed files with 1 additions and 1 deletions

View File

@ -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;