summaryrefslogtreecommitdiffstats
path: root/source/smbd
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
commit2c7d2a1d533052d3556715439fcd66c5233d3137 (patch)
tree074e4bddb689b12fc3364c585547df1787965ace /source/smbd
parent9a87d6f58fc005ddf2daf6fceb12a54fdc48f3b7 (diff)
downloadsamba-2c7d2a1d533052d3556715439fcd66c5233d3137.tar.gz
samba-2c7d2a1d533052d3556715439fcd66c5233d3137.tar.xz
samba-2c7d2a1d533052d3556715439fcd66c5233d3137.zip
Excellent patch from Anselm Kruis <A.Kruis@science-computing.de> to fix
problem with wrong token being used in current_user. Jeremy.
Diffstat (limited to 'source/smbd')
-rw-r--r--source/smbd/sec_ctx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/sec_ctx.c b/source/smbd/sec_ctx.c
index 9ca63a0f957..e0e392decc7 100644
--- a/source/smbd/sec_ctx.c
+++ b/source/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;
}
/****************************************************************************