From: Stefan Metzmacher Date: Thu, 4 Jun 2009 10:17:01 +0000 (+0200) Subject: s3:smbd: call set_current_service() when a SMB2 tcon will be used X-Git-Tag: tdb-1.1.5~290 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e545b253d805028dbe3fe2bd94189ef3b0520885;p=thirdparty%2Fsamba.git s3:smbd: call set_current_service() when a SMB2 tcon will be used metze --- diff --git a/source3/smbd/smb2_tcon.c b/source3/smbd/smb2_tcon.c index d99c2182227..8c4b1f1b6fb 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; }