summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-06-04 12:17:01 +0200
committerStefan Metzmacher <metze@samba.org>2009-06-04 22:41:17 +0200
commite545b253d805028dbe3fe2bd94189ef3b0520885 (patch)
tree4b8fc940b738acfc15d00c685f57a8249aba21f7 /source3/smbd
parent427235eb0e2559c07189713e44828e24e3f45bf8 (diff)
downloadsamba-e545b253d805028dbe3fe2bd94189ef3b0520885.tar.gz
samba-e545b253d805028dbe3fe2bd94189ef3b0520885.tar.bz2
samba-e545b253d805028dbe3fe2bd94189ef3b0520885.zip
s3:smbd: call set_current_service() when a SMB2 tcon will be used
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/smb2_tcon.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/smb2_tcon.c b/source3/smbd/smb2_tcon.c
index d99c218222..8c4b1f1b6f 100644
--- 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;
}