summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-04-12 02:48:52 +0000
committerAndrew Tridgell <tridge@samba.org>1998-04-12 02:48:52 +0000
commit5f7e1d2aa5ad4c57074c9344f7a970e8bd783dda (patch)
treed4dfa65855db1e6996e1535826136282d98c6073
parentc032a9e8a51c7e3d5653ddd6dd9cdcbd768bc068 (diff)
downloadsamba-5f7e1d2aa5ad4c57074c9344f7a970e8bd783dda.tar.gz
samba-5f7e1d2aa5ad4c57074c9344f7a970e8bd783dda.tar.bz2
samba-5f7e1d2aa5ad4c57074c9344f7a970e8bd783dda.zip
support O_SYNC in opens for smbtorture
(This used to be commit 000b871839e12065fc514f857ba205590a95b040)
-rw-r--r--source3/libsmb/clientgen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 4f57c08a95..4bca10cb3a 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -737,6 +737,10 @@ int cli_open(struct cli_state *cli, char *fname, int flags, int share_mode)
accessmode |= 1;
}
+ if ((flags & O_SYNC) == O_SYNC) {
+ accessmode |= (1<<14);
+ }
+
bzero(cli->outbuf,smb_size);
bzero(cli->inbuf,smb_size);