Fixed checking whether utimensat() applies to current atime
The check was applied to mtime instead of atimeedge.strict_endians
parent
543b17b7ef
commit
cfab9d64c6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue