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/rpc_server | |
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/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index 1d2c0c2713..b7be415abc 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -435,7 +435,7 @@ failed authentication on named pipe %s.\n", domain, user_name, wks, p->name )); /* Set up pipe user group membership. */ initialise_groups(p->pipe_user_name, p->pipe_user.uid, p->pipe_user.gid); - get_current_groups( &p->pipe_user.ngroups, &p->pipe_user.groups); + get_current_groups(p->pipe_user.gid, &p->pipe_user.ngroups, &p->pipe_user.groups); if (server_info->ptok) add_supplementary_nt_login_groups(&p->pipe_user.ngroups, &p->pipe_user.groups, &server_info->ptok); |