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:
parent
237f80b128
commit
000b871839
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user