From 5058357891246c63f2b4a3580fa14b416e5507af Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 29 Sep 1997 22:13:09 +0000 Subject: (ugids_make_auth): Change FROM arg into an array, & add NUM_FROM arg. --- libshouldbeinlibc/ugids-auth.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libshouldbeinlibc') 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, -- cgit v1.2.3