summaryrefslogtreecommitdiff
path: root/zen/file_io.cpp
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2021-08-17 19:22:37 -0400
committerB. Stack <bgstack15@gmail.com>2021-08-17 19:22:37 -0400
commit3555dbc4b7157f9b522617de78c84f2e28e70f45 (patch)
treeec5580fe98230ce8eb25a5ed6e53b3ec5dfd03f9 /zen/file_io.cpp
parentMerge branch '11.12-fix' into 'master' (diff)
downloadFreeFileSync-3555dbc4b7157f9b522617de78c84f2e28e70f45.tar.gz
FreeFileSync-3555dbc4b7157f9b522617de78c84f2e28e70f45.tar.bz2
FreeFileSync-3555dbc4b7157f9b522617de78c84f2e28e70f45.zip
add upstream 11.13
Diffstat (limited to 'zen/file_io.cpp')
-rw-r--r--zen/file_io.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zen/file_io.cpp b/zen/file_io.cpp
index f575a366..7eebd2e8 100644
--- a/zen/file_io.cpp
+++ b/zen/file_io.cpp
@@ -170,8 +170,8 @@ FileBase::FileHandle openHandleForWrite(const Zstring& filePath) //throw FileErr
//O_EXCL contains a race condition on NFS file systems: https://linux.die.net/man/2/open
const int fdFile = ::open(filePath.c_str(), //const char* pathname
- O_CREAT | //int flags
- /*access == FileOutput::ACC_OVERWRITE ? O_TRUNC : */ O_EXCL | O_WRONLY | O_CLOEXEC,
+ O_CREAT | //int flags
+ /*access == FileOutput::ACC_OVERWRITE ? O_TRUNC : */ O_EXCL | O_WRONLY | O_CLOEXEC,
lockFileMode); //mode_t mode
if (fdFile == -1)
{
bgstack15