smbd: let switch_message() only call chdir_current_service() for SMBtdis/SMBexit
authorStefan Metzmacher <metze@samba.org>
Thu, 14 Jun 2018 09:18:13 +0000 (11:18 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Jun 2018 06:59:17 +0000 (08:59 +0200)
commit4a97448cc9433a4a8e03f8efbe00a404d72c3616
tree06061057831dd3bb08b647fa073096c7d514a1af
parentd1c8057997f97c6cd537496611dfae4e8b4af520
smbd: let switch_message() only call chdir_current_service() for SMBtdis/SMBexit

These are the two opcodes with DO_CHDIR, we don't want the
set_current_case_sensitive() logic for them,
so we don't need the full set_current_service() anymore.

The AS_USER case is already handled before, set_current_case_sensitive()
is called directly before change_to_user(), which already
calls chdir_current_service().

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/process.c