1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00

support O_SYNC in opens for smbtorture

This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent 237f80b128
commit 000b871839

View 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);