diff options
author | B. Stack <bgstack15@gmail.com> | 2024-11-04 19:38:28 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2024-11-04 19:38:28 -0500 |
commit | b39324e4de8f546989f5b5e1505be1ce1b0970e5 (patch) | |
tree | c5286be1e921ba2e64462cc0eee61b95bc89a083 /zen/file_access.cpp | |
parent | add upstream 13.7 (diff) | |
download | FreeFileSync-master.tar.gz FreeFileSync-master.tar.bz2 FreeFileSync-master.zip |
Diffstat (limited to 'zen/file_access.cpp')
-rw-r--r-- | zen/file_access.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zen/file_access.cpp b/zen/file_access.cpp index 23b6f70d..e1b2860e 100644 --- a/zen/file_access.cpp +++ b/zen/file_access.cpp @@ -374,7 +374,7 @@ void setWriteTimeNative(const Zstring& itemPath, const timespec& modTime, ProcSy //hell knows why files on gvfs-mounted Samba shares fail to open(O_WRONLY) returning EOPNOTSUPP: //https://freefilesync.org/forum/viewtopic.php?t=2803 => utimensat() works (but not for gvfs SFTP) - if (::utimensat(AT_FDCWD, itemPath.c_str(), newTimes, procSl == ProcSymlink::asLink ? AT_SYMLINK_NOFOLLOW : 0) == 0) + if (::utimensat(AT_FDCWD /*'dirfd' ignored for absolute paths*/, itemPath.c_str(), newTimes, procSl == ProcSymlink::asLink ? AT_SYMLINK_NOFOLLOW : 0) == 0) return; const ErrorCode ecUtimensat = errno; try |