summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-09-29 22:13:09 +0000
committerMiles Bader <miles@gnu.org>1997-09-29 22:13:09 +0000
commit5058357891246c63f2b4a3580fa14b416e5507af (patch)
tree255ee7852473640ffdb66f2e3d9f6ba3307c55a4
parent92646194ca1cbde61979e73c7a87f4bb0c80e27c (diff)
(ugids_make_auth):
Change FROM arg into an array, & add NUM_FROM arg.
-rw-r--r--libshouldbeinlibc/ugids-auth.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libshouldbeinlibc/ugids-auth.c b/libshouldbeinlibc/ugids-auth.c
index 89af3848..d7ec9daa 100644
--- a/libshouldbeinlibc/ugids-auth.c
+++ b/libshouldbeinlibc/ugids-auth.c
@@ -26,12 +26,13 @@
/* Make an auth port from UGIDS and return it in AUTH, using authority in
both the auth port FROM and the current auth port. */
error_t
-ugids_make_auth (const struct ugids *ugids, auth_t from, auth_t *auth)
+ugids_make_auth (const struct ugids *ugids,
+ const auth_t *from, size_t num_from,
+ auth_t *auth)
{
auth_t cur_auth = getauth ();
error_t err =
- auth_makeauth (cur_auth, &from, MACH_MSG_TYPE_COPY_SEND,
- (from == MACH_PORT_NULL) ? 0 : 1,
+ auth_makeauth (cur_auth, (auth_t *)from, MACH_MSG_TYPE_COPY_SEND, num_from,
ugids->eff_uids.ids, ugids->eff_uids.num,
ugids->avail_uids.ids, ugids->avail_uids.num,
ugids->eff_gids.ids, ugids->eff_gids.num,