summaryrefslogtreecommitdiff
path: root/source3/smbd/process.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2018-06-14 11:15:10 +0200
committerStefan Metzmacher <metze@samba.org>2018-06-18 08:59:16 +0200
commitffe1918e8153f5bf429e3d9ebed975c6127f1553 (patch)
tree3d1c4bf7efa3859fc695fe7ed599e819a5964cd4 /source3/smbd/process.c
parent0186ff23246cd5332729a80118d87d6a47488259 (diff)
downloadsamba-ffe1918e8153f5bf429e3d9ebed975c6127f1553.tar.gz
smbd: call set_current_case_sensitive() before change_to_user() in switch_message()
change_to_user() will soon call chdir_current_service() and we should make sure conn->case_sensitive is prepared before calling vfs_ChDir(). Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r--source3/smbd/process.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 29249ea9a75..7babf4d5699 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -1599,6 +1599,8 @@ static connection_struct *switch_message(uint8_t type, struct smb_request *req)
return NULL;
}
+ set_current_case_sensitive(conn, SVAL(req->inbuf,smb_flg));
+
if (!change_to_user(conn,session_tag)) {
DEBUG(0, ("Error: Could not change to user. Removing "
"deferred open, mid=%llu.\n",