summaryrefslogtreecommitdiff
path: root/source3/smbd/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r--source3/smbd/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index edc5bc98b6..1c8716abda 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1308,7 +1308,7 @@ files_struct *open_file_ntcreate(connection_struct *conn,
*/
#if defined(O_SYNC)
- if (create_options & FILE_WRITE_THROUGH) {
+ if (lp_strict_sync(SNUM(conn)) && (create_options & FILE_WRITE_THROUGH)) {
flags2 |= O_SYNC;
}
#endif /* O_SYNC */