From e662983fbe2068c977821f6563900d5a2b0a9323 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 25 Jul 2001 18:07:36 +0000 Subject: Excellent patch from Anselm Kruis to fix problem with wrong token being used in current_user. Jeremy. (This used to be commit 2c7d2a1d533052d3556715439fcd66c5233d3137) --- source3/smbd/sec_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/sec_ctx.c b/source3/smbd/sec_ctx.c index 9ca63a0f95..e0e392decc 100644 --- a/source3/smbd/sec_ctx.c +++ b/source3/smbd/sec_ctx.c @@ -356,7 +356,7 @@ void set_sec_ctx(uid_t uid, gid_t gid, int ngroups, gid_t *groups, NT_USER_TOKEN current_user.gid = gid; current_user.ngroups = ngroups; current_user.groups = groups; - current_user.nt_user_token = token; + current_user.nt_user_token = ctx_p->token; } /**************************************************************************** -- cgit