git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c032a9e
)
support O_SYNC in opens for smbtorture
author
Andrew Tridgell
<tridge@samba.org>
Sun, 12 Apr 1998 02:48:52 +0000
(
02:48
+0000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/source3/libsmb/clientgen.c
b/source3/libsmb/clientgen.c
index 4f57c08a952457f7a51132e09e05e9c7d30e08ed..4bca10cb3a5a24a1508810e6acc9cb3d84c3f99b 100644
(file)
--- 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);