summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-11-10 15:56:44 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-11-10 15:56:44 +1100
commite5a2b5288dea7f17373d97f4e81972de6935ae07 (patch)
treeffa9ebe2ca8828ecef622a50c5c59cd9204a0ea6
parentb0288098c9e9c4753e8e9537051eef4b7f417585 (diff)
- (dtucker) [openbsd-compat/getgrouplist.c] Sync OpenBSD revs 1.10 - 1.2 (ANSI
prototypes, removal of "register").
-rw-r--r--ChangeLog4
-rw-r--r--openbsd-compat/getgrouplist.c15
2 files changed, 7 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index 7114edc57..28ee1d6c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,8 @@
10 Patch from djm@. 10 Patch from djm@.
11 - (dtucker) [configure.ac] Disable pointer-sign warnings on gcc 4.0+ 11 - (dtucker) [configure.ac] Disable pointer-sign warnings on gcc 4.0+
12 since they're not useful right now. Patch from djm@. 12 since they're not useful right now. Patch from djm@.
13 - (dtucker) [openbsd-compat/getgrouplist.c] Sync OpenBSD revs 1.10 - 1.2 (ANSI
14 prototypes, removal of "register").
13 15
1420051105 1620051105
15 - (djm) OpenBSD CVS Sync 17 - (djm) OpenBSD CVS Sync
@@ -3252,4 +3254,4 @@
3252 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 3254 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
3253 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 3255 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
3254 3256
3255$Id: ChangeLog,v 1.3959 2005/11/10 03:46:48 dtucker Exp $ 3257$Id: ChangeLog,v 1.3960 2005/11/10 04:56:44 dtucker Exp $
diff --git a/openbsd-compat/getgrouplist.c b/openbsd-compat/getgrouplist.c
index 59c164f44..2a2b8878b 100644
--- a/openbsd-compat/getgrouplist.c
+++ b/openbsd-compat/getgrouplist.c
@@ -1,5 +1,6 @@
1/* OPENBSD ORIGINAL: lib/libc/gen/getgrouplist.c */ 1/* OPENBSD ORIGINAL: lib/libc/gen/getgrouplist.c */
2 2
3/* $OpenBSD: getgrouplist.c,v 1.12 2005/08/08 08:05:34 espie Exp $ */
3/* 4/*
4 * Copyright (c) 1991, 1993 5 * Copyright (c) 1991, 1993
5 * The Regents of the University of California. All rights reserved. 6 * The Regents of the University of California. All rights reserved.
@@ -33,10 +34,6 @@
33 34
34#ifndef HAVE_GETGROUPLIST 35#ifndef HAVE_GETGROUPLIST
35 36
36#if defined(LIBC_SCCS) && !defined(lint)
37static char rcsid[] = "$OpenBSD: getgrouplist.c,v 1.9 2003/06/25 21:16:47 deraadt Exp $";
38#endif /* LIBC_SCCS and not lint */
39
40/* 37/*
41 * get credential 38 * get credential
42 */ 39 */
@@ -46,14 +43,10 @@ static char rcsid[] = "$OpenBSD: getgrouplist.c,v 1.9 2003/06/25 21:16:47 deraad
46#include <grp.h> 43#include <grp.h>
47 44
48int 45int
49getgrouplist(uname, agroup, groups, grpcnt) 46getgrouplist(const char *uname, gid_t agroup, gid_t *groups, int *grpcnt)
50 const char *uname;
51 gid_t agroup;
52 register gid_t *groups;
53 int *grpcnt;
54{ 47{
55 register struct group *grp; 48 struct group *grp;
56 register int i, ngroups; 49 int i, ngroups;
57 int ret, maxgroups; 50 int ret, maxgroups;
58 int bail; 51 int bail;
59 52