support O_SYNC in opens for smbtorture
authorAndrew Tridgell <tridge@samba.org>
Sun, 12 Apr 1998 02:48:52 +0000 (02:48 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 12 Apr 1998 02:48:52 +0000 (02:48 +0000)
(This used to be commit 000b871839e12065fc514f857ba205590a95b040)

source3/libsmb/clientgen.c

index 4f57c08a952457f7a51132e09e05e9c7d30e08ed..4bca10cb3a5a24a1508810e6acc9cb3d84c3f99b 100644 (file)
@@ -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);