summaryrefslogtreecommitdiff
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
commit60097e0d8d3db07eecf1773d74f8376ea4059b05 (patch)
treea384ee6eaadaeef4ea8e0ca98d5640a0c3dc7c7d
parentceb68ee051e97afb1cb08e6f458e23e8f475504e (diff)
downloadsamba-60097e0d8d3db07eecf1773d74f8376ea4059b05.tar.gz
samba-60097e0d8d3db07eecf1773d74f8376ea4059b05.tar.bz2
samba-60097e0d8d3db07eecf1773d74f8376ea4059b05.zip
Fix from matt.zinkevicius@hp.com to stop files being created on read-only
shares in some circumstances. Jeremy. (This used to be commit b826e8c8980d26e932da55384f109f0fe6a124c7)
-rw-r--r--source3/smbd/open.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 5f6ed74f09..8f83983023 100644
--- a/source3/smbd/open.c
+++ b/source3/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;
}
}