Changeset 599 for trunk/server/source3/lib/system_smbd.c
- Timestamp:
- Jul 6, 2011, 8:21:13 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/server/source3/lib/system_smbd.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/lib/system_smbd.c
r454 r599 28 28 #ifndef HAVE_GETGROUPLIST 29 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 30 80 /* 31 81 This is a *much* faster way of getting the list of groups for a user … … 118 168 #endif 119 169 } 120 #endif 170 #endif /* HAVE_GETGRSET */ 171 #endif /* HAVE_GETGROUPLIST */ 121 172 122 173 static int sys_getgrouplist(const char *user, gid_t gid, gid_t *groups, int *grpcnt) … … 136 187 retval = getgrouplist(user, gid, groups, grpcnt); 137 188 #else 189 190 191 138 192 become_root(); 139 193 retval = getgrouplist_internals(user, gid, groups, grpcnt); 140 194 unbecome_root(); 141 #endif 195 #endif /* HAVE_GETGRSET */ 196 #endif /* HAVE_GETGROUPLIST */ 142 197 143 198 /* allow winbindd lookups, but only if they were not already disabled */
Note:
See TracChangeset
for help on using the changeset viewer.
