Changeset 745 for trunk/server/source3/lib/system_smbd.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source3/lib/system_smbd.c
r599 r745 25 25 26 26 #include "includes.h" 27 #include "system/passwd.h" 28 #include "nsswitch/winbind_client.h" 27 29 28 30 #ifndef HAVE_GETGROUPLIST … … 120 122 } 121 123 122 if (initgroups(user, gid) != 0) {124 if (initgroups(user, gid) == -1) { 123 125 DEBUG(0, ("getgrouplist_internals: initgroups() failed!\n")); 124 126 SAFE_FREE(gids_saved); … … 206 208 bool getgroups_unix_user(TALLOC_CTX *mem_ctx, const char *user, 207 209 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; 211 213 int max_grp; 212 214 gid_t *temp_groups;
Note:
See TracChangeset
for help on using the changeset viewer.