Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/lib/system_smbd.c

    r599 r745  
    2525
    2626#include "includes.h"
     27#include "system/passwd.h"
     28#include "nsswitch/winbind_client.h"
    2729
    2830#ifndef HAVE_GETGROUPLIST
     
    120122        }
    121123
    122         if (initgroups(user, gid) != 0) {
     124        if (initgroups(user, gid) == -1) {
    123125                DEBUG(0, ("getgrouplist_internals: initgroups() failed!\n"));
    124126                SAFE_FREE(gids_saved);
     
    206208bool getgroups_unix_user(TALLOC_CTX *mem_ctx, const char *user,
    207209                         gid_t primary_gid,
    208                          gid_t **ret_groups, size_t *p_ngroups)
    209 {
    210         size_t ngrp;
     210                         gid_t **ret_groups, uint32_t *p_ngroups)
     211{
     212        uint32_t ngrp;
    211213        int max_grp;
    212214        gid_t *temp_groups;
Note: See TracChangeset for help on using the changeset viewer.