git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5f599d
)
support O_SYNC at open time in files (previously we only supported it
author
Andrew Tridgell
<tridge@samba.org>
Sun, 12 Apr 1998 02:52:13 +0000
(
02:52
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Sun, 12 Apr 1998 02:52:13 +0000
(
02:52
+0000)
on individual writes)
(This used to be commit
ce017a233ba5c68e340e0d31634f9bd93118b20a
)
source3/smbd/server.c
patch
|
blob
|
history
diff --git
a/source3/smbd/server.c
b/source3/smbd/server.c
index 1d3c2e144c3050da1d95cc51a19787c7dcd990ae..b86098f49308f4f1dc40df879a4f8bd8068daf44 100644
(file)
--- a/
source3/smbd/server.c
+++ b/
source3/smbd/server.c
@@
-1829,6
+1829,10
@@
void open_file_shared(int fnum,int cnum,char *fname,int share_mode,int ofun,
flags = O_RDONLY;
break;
}
+
+ if (share_mode&(1<<14)) {
+ flags2 |= O_SYNC;
+ }
if (flags != O_RDONLY && file_existed &&
(!CAN_WRITE(cnum) || IS_DOS_READONLY(dos_mode(cnum,fname,&sbuf))))