summaryrefslogtreecommitdiffstats
path: root/source/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-07-24 19:10:52 +0000
committerJeremy Allison <jra@samba.org>2003-07-24 19:10:52 +0000
commitb826e8c8980d26e932da55384f109f0fe6a124c7 (patch)
treedc7dd039ec6779e3d4b32e1fe04f37cf328945d5 /source/smbd
parenta6e537f6611cc1357fffea0b69901fba7c9ad6ea (diff)
downloadsamba-b826e8c8980d26e932da55384f109f0fe6a124c7.tar.gz
samba-b826e8c8980d26e932da55384f109f0fe6a124c7.tar.xz
samba-b826e8c8980d26e932da55384f109f0fe6a124c7.zip
Fix from matt.zinkevicius@hp.com to stop files being created on read-only
shares in some circumstances. Jeremy.
Diffstat (limited to 'source/smbd')
-rw-r--r--source/smbd/open.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/smbd/open.c b/source/smbd/open.c
index 5f6ed74f09e..8f839830236 100644
--- a/source/smbd/open.c
+++ b/source/smbd/open.c
@@ -125,6 +125,7 @@ static BOOL open_file(files_struct *fsp,connection_struct *conn,
directory.
*/
flags &= ~O_CREAT;
+ local_flags &= ~O_CREAT;
}
}