From aca0a3ad3a9646e821f2d4c3d30f3a14592df4ae Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 3 May 2006 03:42:56 +0000 Subject: r15404: Check for WRITE_THOUGH before calling lp_ fn. I hate extra fn calls. Jeremy. (This used to be commit e468e1e5c2dbee29066f0efe4141d8705def5d6f) --- source3/smbd/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit