diff options
author | Jeremy Allison <jra@samba.org> | 2006-05-03 03:42:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:16:41 -0500 |
commit | aca0a3ad3a9646e821f2d4c3d30f3a14592df4ae (patch) | |
tree | 492401e6d5e8570d175ca87f9292778111c55e63 /source3 | |
parent | 6eb1187765b617128c3e698d02127f2690779580 (diff) | |
download | samba-aca0a3ad3a9646e821f2d4c3d30f3a14592df4ae.tar.gz samba-aca0a3ad3a9646e821f2d4c3d30f3a14592df4ae.tar.bz2 samba-aca0a3ad3a9646e821f2d4c3d30f3a14592df4ae.zip |
r15404: Check for WRITE_THOUGH before calling lp_ fn. I hate
extra fn calls.
Jeremy.
(This used to be commit e468e1e5c2dbee29066f0efe4141d8705def5d6f)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 1c8716abda..3d537b2f39 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 (lp_strict_sync(SNUM(conn)) && (create_options & FILE_WRITE_THROUGH)) { + if ((create_options & FILE_WRITE_THROUGH) && lp_strict_sync(SNUM(conn))) { flags2 |= O_SYNC; } #endif /* O_SYNC */ |