svn commit: samba r15403 - in trunk/source/smbd: .

jra at samba.org jra at samba.org
Wed May 3 03:42:58 GMT 2006


Author: jra
Date: 2006-05-03 03:42:45 +0000 (Wed, 03 May 2006)
New Revision: 15403

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15403

Log:
Check for WRITE_THOUGH before calling lp_ fn. I hate
extra fn calls.
Jeremy.

Modified:
   trunk/source/smbd/open.c


Changeset:
Modified: trunk/source/smbd/open.c
===================================================================
--- trunk/source/smbd/open.c	2006-05-03 02:14:09 UTC (rev 15402)
+++ trunk/source/smbd/open.c	2006-05-03 03:42:45 UTC (rev 15403)
@@ -1308,7 +1308,7 @@
 	 */
 
 #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 */



More information about the samba-cvs mailing list