summaryrefslogtreecommitdiff
path: root/zen/file_access.cpp
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2024-11-04 19:38:28 -0500
committerB. Stack <bgstack15@gmail.com>2024-11-04 19:38:28 -0500
commitb39324e4de8f546989f5b5e1505be1ce1b0970e5 (patch)
treec5286be1e921ba2e64462cc0eee61b95bc89a083 /zen/file_access.cpp
parentadd upstream 13.7 (diff)
downloadFreeFileSync-master.tar.gz
FreeFileSync-master.tar.bz2
FreeFileSync-master.zip
add upstream 13.8HEADmaster
Diffstat (limited to 'zen/file_access.cpp')
-rw-r--r--zen/file_access.cpp2
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
bgstack15