diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-07-15 03:59:14 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-07-15 03:59:14 +0000 |
commit | 369040ac5d7220a301b09c16b0a6f4a3ce14c8b6 (patch) | |
tree | 5c0bccd36c23542221427ca27c8c4fa6af409fbf /source3/smbd/password.c | |
parent | ae10baa5fc98863c242b1036f588f59cf6ae3e0d (diff) | |
download | samba-369040ac5d7220a301b09c16b0a6f4a3ce14c8b6.tar.gz samba-369040ac5d7220a301b09c16b0a6f4a3ce14c8b6.tar.bz2 samba-369040ac5d7220a301b09c16b0a6f4a3ce14c8b6.zip |
fixed a problem with getgroups() where it could include our current
effective gid which could mean that the user gets group 0 in their
group list for acl interpretation
this is a replacement fix for the one richard did in 2.2 (which didn't
cope wiith variable behaviour depending on which nss module was in
use)
(This used to be commit cfc5ca3416cea5ea5d2ac34f5521cb6367e42cd2)
Diffstat (limited to 'source3/smbd/password.c')
-rw-r--r-- | source3/smbd/password.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c index f9bcad4154..82c0cef77d 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -289,7 +289,7 @@ int register_vuid(auth_serversupplied_info *server_info, char *smb_name) /* Find all the groups this uid is in and store them. Used by change_to_user() */ initialise_groups(vuser->user.unix_name, vuser->uid, vuser->gid); - get_current_groups( &vuser->n_groups, &vuser->groups); + get_current_groups(vuser->gid, &vuser->n_groups, &vuser->groups); if (server_info->ptok) add_supplementary_nt_login_groups(&vuser->n_groups, &vuser->groups, &server_info->ptok); |