From f0af8acc9d6a546fe96a8a8ab985224c353084dd Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 5 Oct 2000 03:28:58 +0000 Subject: Added uid and gid to push_sec_ctx() debug. (This used to be commit 2817b6cc8af3edbaa63b5db67689ab94cb240d4f) --- source3/smbd/sec_ctx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/smbd/sec_ctx.c b/source3/smbd/sec_ctx.c index 0cab2a7e9c..6837a8d4f8 100644 --- a/source3/smbd/sec_ctx.c +++ b/source3/smbd/sec_ctx.c @@ -272,13 +272,14 @@ BOOL push_sec_ctx(void) sec_ctx_stack_ndx++; - DEBUG(3, ("push_sec_ctx() : sec_ctx_stack_ndx = %d\n", sec_ctx_stack_ndx )); - ctx_p = &sec_ctx_stack[sec_ctx_stack_ndx]; ctx_p->uid = geteuid(); ctx_p->gid = getegid(); + DEBUG(3, ("push_sec_ctx(%d, %d) : sec_ctx_stack_ndx = %d\n", + ctx_p->uid, ctx_p->gid, sec_ctx_stack_ndx )); + ctx_p->token = dup_nt_token(sec_ctx_stack[sec_ctx_stack_ndx-1].token); ctx_p->ngroups = sys_getgroups(0, NULL); -- cgit