summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-09-30 04:28:43 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-09-30 04:28:43 +0000
commit7802bc94e78932d24eb6658edc14d0d051246208 (patch)
tree19554d51e3ac43f8909e49965d5c8b42bcd23db3 /source
parent663c1c91bdd020e2e8266d25909db12b28fbb7d8 (diff)
downloadsamba-7802bc94e78932d24eb6658edc14d0d051246208.tar.gz
Small changes to register_vuid ahead of a larger restructure.
Diffstat (limited to 'source')
-rw-r--r--source/smbd/password.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/password.c b/source/smbd/password.c
index a05735b4d76..6f5c7508a4c 100644
--- a/source/smbd/password.c
+++ b/source/smbd/password.c
@@ -246,13 +246,13 @@ int register_vuid(uid_t uid,gid_t gid, char *unix_name, char *requested_name,
/* Find all the groups this uid is in and store them.
Used by become_user() */
- initialise_groups(unix_name, uid, gid);
+ initialise_groups(vuser->user.unix_name, vuser->uid, vuser->gid);
get_current_groups( &vuser->n_groups, &vuser->groups);
/* Create an NT_USER_TOKEN struct for this user. */
- vuser->nt_user_token = create_nt_token(uid,gid, vuser->n_groups, vuser->groups, guest);
+ vuser->nt_user_token = create_nt_token(vuser->uid, vuser->gid, vuser->n_groups, vuser->groups, guest);
- DEBUG(3,("uid %d registered to name %s\n",(int)uid,unix_name));
+ DEBUG(3,("uid %d registered to name %s\n",(int)vuser->uid,vuser->user.unix_name));
next_vuid++;
num_validated_vuids++;