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:
427235e
)
s3:smbd: call set_current_service() when a SMB2 tcon will be used
author
Stefan Metzmacher
<metze@samba.org>
Thu, 4 Jun 2009 10:17:01 +0000
(12:17 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 4 Jun 2009 20:41:17 +0000
(22:41 +0200)
metze
source3/smbd/smb2_tcon.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_tcon.c
b/source3/smbd/smb2_tcon.c
index d99c2182227512a36ad84f0604522286c6a730e4..8c4b1f1b6fbdb086ab366e19b6a6a2d2e81d1332 100644
(file)
--- a/
source3/smbd/smb2_tcon.c
+++ b/
source3/smbd/smb2_tcon.c
@@
-236,6
+236,11
@@
NTSTATUS smbd_smb2_request_check_tcon(struct smbd_smb2_request *req)
return NT_STATUS_ACCESS_DENIED;
}
+ /* should we pass FLAG_CASELESS_PATHNAMES here? */
+ if (!set_current_service(tcon->compat_conn, 0, true)) {
+ return NT_STATUS_ACCESS_DENIED;
+ }
+
req->tcon = tcon;
return NT_STATUS_OK;
}