summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-10-11 04:54:37 +0000
committerTim Potter <tpot@samba.org>2000-10-11 04:54:37 +0000
commitcbee552bdb1a4692a19667175fbbf090a9597d71 (patch)
tree9723d153f7b70d6ce53f7c9c523d7a008efe71c0
parent7c4c781df2ef3d0ef772fdde215c72ded7445ab8 (diff)
downloadsamba-cbee552bdb1a4692a19667175fbbf090a9597d71.tar.gz
samba-cbee552bdb1a4692a19667175fbbf090a9597d71.tar.bz2
samba-cbee552bdb1a4692a19667175fbbf090a9597d71.zip
Don't initialise groups twice.
(This used to be commit 15d7f16bdc2ff4f2ae82871eb9f318ba45cf4d1c)
-rw-r--r--source3/rpc_server/srv_pipe.c1
-rw-r--r--source3/smbd/service.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c
index 01d9568477..fd5155a554 100644
--- a/source3/rpc_server/srv_pipe.c
+++ b/source3/rpc_server/srv_pipe.c
@@ -463,7 +463,6 @@ failed authentication on named pipe %s.\n", domain, pipe_user_name, wks, p->name
/* Set up pipe user group membership. */
initialise_groups(pipe_user_name, p->pipe_user.uid, p->pipe_user.gid);
- initialize_groups(pipe_user_name, p->pipe_user.uid, p->pipe_user.gid);
get_current_groups( &p->pipe_user.ngroups, &p->pipe_user.groups);
/* Create an NT_USER_TOKEN struct for this user. */
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index e1e0fde32f..6d07562743 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -460,7 +460,6 @@ connection_struct *make_connection(char *service,char *user,char *password, int
/* Find all the groups this uid is in and
store them. Used by become_user() */
initialise_groups(conn->user, conn->uid, conn->gid);
- initialize_groups(conn->user, conn->uid, conn->gid);
get_current_groups(&conn->ngroups,&conn->groups);
/* check number of connections */