git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bdca92
)
s3: Fix rejecting mkdir on read-only shares
author
Volker Lendecke
<vl@samba.org>
Wed, 26 Sep 2012 21:53:59 +0000
(14:53 -0700)
committer
Jeremy Allison
<jra@samba.org>
Wed, 26 Sep 2012 23:07:08 +0000
(
01:07
+0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index 10c855c225fddaf3372618b3325da6379426c1de..40a64115e107a4630f97456a15f6bedba3976e1f 100644
(file)
--- a/
source3/smbd/open.c
+++ b/
source3/smbd/open.c
@@
-2815,7
+2815,7
@@
static NTSTATUS mkdir_internal(connection_struct *conn,
bool need_re_stat = false;
uint32_t access_mask = SEC_DIR_ADD_SUBDIR;
- if
(access_mask & ~(conn->share_access
)) {
+ if
(!CAN_WRITE(conn) || (access_mask & ~(conn->share_access)
)) {
DEBUG(5,("mkdir_internal: failing share access "
"%s\n", lp_servicename(talloc_tos(), SNUM(conn))));
return NT_STATUS_ACCESS_DENIED;