diff options
author | Tim Potter <tpot@samba.org> | 2000-10-11 04:54:01 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2000-10-11 04:54:01 +0000 |
commit | 7c4c781df2ef3d0ef772fdde215c72ded7445ab8 (patch) | |
tree | d92c76c3e6a5f0cab3780c49948df003bf70453d /source3 | |
parent | 449821248784129f507bdb048c6721135606c546 (diff) | |
download | samba-7c4c781df2ef3d0ef772fdde215c72ded7445ab8.tar.gz samba-7c4c781df2ef3d0ef772fdde215c72ded7445ab8.tar.bz2 samba-7c4c781df2ef3d0ef772fdde215c72ded7445ab8.zip |
Remove duplicate group initialisation function.
Don't initialise groups twice.
(This used to be commit 5375261152b28a65de18e817c75cab79c2f556b8)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/password.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 2f720db9c1..55c7f0709b 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -160,27 +160,6 @@ char *validated_domain(uint16 vuid) /**************************************************************************** - Initialize the groups a user belongs to. -****************************************************************************/ - -BOOL initialize_groups(char *user, uid_t uid, gid_t gid) -{ - become_root(); - if (initgroups(user,gid) == -1) { - DEBUG(0,("Unable to initgroups. Error was %s\n", strerror(errno) )); - if (getuid() == 0) { - if (gid < 0 || gid > 32767 || uid < 0 || uid > 32767) { - DEBUG(0,("This is probably a problem with the account %s\n", user)); - } - } - unbecome_root(); - return False; - } - unbecome_root(); - return True; -} - -/**************************************************************************** Create the SID list for this user. ****************************************************************************/ @@ -260,7 +239,6 @@ uint16 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); - initialize_groups(unix_name, uid, gid); get_current_groups( &vuser->n_groups, &vuser->groups); /* Create an NT_USER_TOKEN struct for this user. */ |