Don't initialise groups twice.
authorTim Potter <tpot@samba.org>
Wed, 11 Oct 2000 04:54:37 +0000 (04:54 +0000)
committerTim Potter <tpot@samba.org>
Wed, 11 Oct 2000 04:54:37 +0000 (04:54 +0000)
source/rpc_server/srv_pipe.c
source/smbd/service.c

index 01d956847737bec878c6652e4fe86d8872bdf50e..fd5155a554ee63cce189ed4debeaf9c8edce6194 100644 (file)
@@ -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. */
index e1e0fde32fd4ab04f8c4d3e1a119b0a4b4e93bdb..6d07562743837f90c85a9acef4ac6a1848525145 100644 (file)
@@ -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 */