summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-07-25 18:07:36 +0000
committerJeremy Allison <jra@samba.org>2001-07-25 18:07:36 +0000
commite662983fbe2068c977821f6563900d5a2b0a9323 (patch)
tree3fdcab9253f451b38754c2a6072e0b74646a0810
parent1d07607b39c0d3ff345c10893b4e8b1a6c7dabb4 (diff)
downloadsamba-e662983fbe2068c977821f6563900d5a2b0a9323.tar.gz
samba-e662983fbe2068c977821f6563900d5a2b0a9323.tar.bz2
samba-e662983fbe2068c977821f6563900d5a2b0a9323.zip
Excellent patch from Anselm Kruis <A.Kruis@science-computing.de> to fix
problem with wrong token being used in current_user. Jeremy. (This used to be commit 2c7d2a1d533052d3556715439fcd66c5233d3137)
-rw-r--r--source3/smbd/sec_ctx.c2
1 files changed, 1 insertions, 1 deletions
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;
}
/****************************************************************************