smbd: call chdir_current_service() in change_to_user_internal() and pop_conn_ctx()
authorStefan Metzmacher <metze@samba.org>
Wed, 13 Jun 2018 11:30:33 +0000 (13:30 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Jun 2018 06:59:17 +0000 (08:59 +0200)
commitd1c8057997f97c6cd537496611dfae4e8b4af520
tree95bdeddd9a478ac9609460fe284720abd42e1a7e
parentb27d885478245d8bd56ab4f5459908b6c574d15d
smbd: call chdir_current_service() in change_to_user_internal() and pop_conn_ctx()

change_to_user() should be the one and only function for the whole
impersonation processing. So we also need to stack the
chdir_current_service() behaviour for become_user/unbecome_user,
so we may need to call vfs_ChDir(ctx_p->conn, ctx_p->conn->cwd_fname);
in pop_conn_ctx().

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/include/smb.h
source3/smbd/globals.h
source3/smbd/uid.c