diff options
author | Stefan Metzmacher <metze@samba.org> | 2018-06-14 11:15:10 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2018-06-18 08:59:16 +0200 |
commit | ffe1918e8153f5bf429e3d9ebed975c6127f1553 (patch) | |
tree | 3d1c4bf7efa3859fc695fe7ed599e819a5964cd4 /source3/smbd/process.c | |
parent | 0186ff23246cd5332729a80118d87d6a47488259 (diff) | |
download | samba-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.c | 2 |
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", |