summaryrefslogtreecommitdiff
path: root/openbsd-compat/port-aix.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2008-03-09 16:36:55 +1100
committerDarren Tucker <dtucker@zip.com.au>2008-03-09 16:36:55 +1100
commit16ba6a8ea25ee45feec55ce5a29a4723c2665ea2 (patch)
treee1236b06ced64159bba370f3831eb52643cd1ea3 /openbsd-compat/port-aix.c
parentb7918afddf36c22b8eb87d98819d2cf9ddb6b424 (diff)
- (dtucker) [openbsd-compat/port-aix.{c,h}] Remove AIX specific initgroups
implementation. It's not needed to fix bug #1081 and breaks the build on some AIX configurations.
Diffstat (limited to 'openbsd-compat/port-aix.c')
-rw-r--r--openbsd-compat/port-aix.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c
index b19d2296e..5b1cb7387 100644
--- a/openbsd-compat/port-aix.c
+++ b/openbsd-compat/port-aix.c
@@ -435,17 +435,6 @@ out:
435 *grpcnt = ngroups; 435 *grpcnt = ngroups;
436 return ret; 436 return ret;
437} 437}
438
439int
440ssh_initgroups(const char *user, gid_t group)
441{
442 gid_t grps[NGROUPS_MAX];
443 int grpcnt = NGROUPS_MAX;
444
445 if (getgrouplist(user, group, grps, &grpcnt) == -1)
446 return -1;
447 return setgroups(grpcnt, grps);
448}
449# endif /* USE_GETGRSET */ 438# endif /* USE_GETGRSET */
450 439
451#endif /* _AIX */ 440#endif /* _AIX */