Excellent patch from Anselm Kruis <A.Kruis@science-computing.de> to fix
authorJeremy Allison <jra@samba.org>
Wed, 25 Jul 2001 18:07:36 +0000 (18:07 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 25 Jul 2001 18:07:36 +0000 (18:07 +0000)
problem with wrong token being used in current_user.
Jeremy.
(This used to be commit 2c7d2a1d533052d3556715439fcd66c5233d3137)

source3/smbd/sec_ctx.c

index 9ca63a0f957842a4726e03cc81b1e597f6797523..e0e392decc7d32dbf197056081657a9b067fd595 100644 (file)
@@ -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;
 }
 
 /****************************************************************************