diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-06-04 12:17:01 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-06-04 22:41:17 +0200 |
commit | e545b253d805028dbe3fe2bd94189ef3b0520885 (patch) | |
tree | 4b8fc940b738acfc15d00c685f57a8249aba21f7 | |
parent | 427235eb0e2559c07189713e44828e24e3f45bf8 (diff) | |
download | samba-e545b253d805028dbe3fe2bd94189ef3b0520885.tar.gz samba-e545b253d805028dbe3fe2bd94189ef3b0520885.tar.bz2 samba-e545b253d805028dbe3fe2bd94189ef3b0520885.zip |
s3:smbd: call set_current_service() when a SMB2 tcon will be used
metze
-rw-r--r-- | source3/smbd/smb2_tcon.c | 5 |
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; } |