1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r15404: Check for WRITE_THOUGH before calling lp_ fn. I hate

extra fn calls.
Jeremy.
(This used to be commit e468e1e5c2)
This commit is contained in:
Jeremy Allison 2006-05-03 03:42:56 +00:00 committed by Gerald (Jerry) Carter
parent 6eb1187765
commit aca0a3ad3a

View File

@ -1308,7 +1308,7 @@ files_struct *open_file_ntcreate(connection_struct *conn,
*/ */
#if defined(O_SYNC) #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; flags2 |= O_SYNC;
} }
#endif /* O_SYNC */ #endif /* O_SYNC */