From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from np.nosc.mil ([128.49.228.66]) by hawkwind.utcs.utoronto.ca with SMTP id <24842>; Mon, 9 Feb 1998 18:12:04 -0500 Received: (qmail 4058 invoked by uid 1168); 9 Feb 1998 20:31:35 -0000 Date: Mon, 9 Feb 1998 15:31:35 -0500 Message-ID: <19980209203135.4057.qmail@np.nosc.mil> To: rc@hawkwind.utcs.toronto.edu In-reply-to: (message from Tim Goodwin on Fri, 6 Feb 1998 18:00:37 +0000) Subject: Re: "rc" shell maintainer? From: Vincent Broman Reply-to: broman@nosc.mil -----BEGIN PGP SIGNED MESSAGE----- > Did you try the patch I sent, which changes gid_t to GETGROUPS_T on the > subsequent line, too? Woops, it didn't sink in that that was an additional patch. - From your tip, I ended up with the following which seems to work. - --- which.c.orig Mon Jul 7 08:43:53 1997 +++ which.c Mon Feb 9 12:27:55 1998 @@ -33,5 +33,5 @@ static int ingidset(gid_t g) { - - gid_t i; + int i; for (i = 0; i < ngroups; ++i) if (g == gidset[i]) @@ -88,6 +88,6 @@ gid = getegid(); #if HAVE_GETGROUPS - - ngroups = getgroups(0, (gid_t *)0); - - gidset = malloc(ngroups * sizeof(gid_t)); + ngroups = getgroups(0, (GETGROUPS_T *)0); + gidset = malloc(ngroups * sizeof(GETGROUPS_T)); if (!gidset) uerror("malloc"); Thanks. V Broman -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBNN9nk2CU4mTNq7IdAQFrBQP9GcJ5EBvhJHtt72H8D1tZ1fU69JjsPWEn 3KwTZYUFxKRIbMnqxiNaokdjK2iDlzxagYqZalEhC9oNs/LVBOn1kLL1i0I06mth sj/aC0wF6/AkdUVP4rWIbv0IF4umlbFW4Ayqyy5AJJo7jH3Z6nw1rgL3ccw+PLPK 33rmO1n8G6c= =F+kV -----END PGP SIGNATURE-----