smbd: call set_current_case_sensitive() before change_to_user() in switch_message()
authorStefan Metzmacher <metze@samba.org>
Thu, 14 Jun 2018 09:15:10 +0000 (11:15 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Jun 2018 06:59:16 +0000 (08:59 +0200)
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>
source3/smbd/process.c

index 29249ea9a7593256a346844239c9fef9bab442db..7babf4d5699f29ff12da0859a6c20db2fdd55d55 100644 (file)
@@ -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",