From d2d5a3189b2a24014340045ddd5633c50aacfaee Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 26 Jun 1996 18:33:25 +0000 Subject: (S_auth_makeauth): Don't special-case the 0 explicit ids case (it used to merge in all the ids from passed in auth-handles in that case). --- auth/auth.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'auth') diff --git a/auth/auth.c b/auth/auth.c index daf04aa5..872185e0 100644 --- a/auth/auth.c +++ b/auth/auth.c @@ -217,26 +217,13 @@ S_auth_makeauth (struct authhandle *auth, if (err) return err; + /* Create a new handle with the specified ids. */ + #define MERGE S (euids); S (egids); S (auids); S (agids); - if (neuids || nauids || negids || nagids) - { - /* Create a new handle with the specified ids. */ #define S(uids) if (!err) err = idvec_merge_ids (&newauth->uids, uids, n##uids) MERGE; #undef S - } - else - { - /* Use the union of the ids of the passed in handles for the new one. */ - - for (i = 0; !err && i < nauths; ++i) - { -#define S(uids) if (!err) err = idvec_merge (&newauth->uids, &auths[i]->uids) - MERGE; -#undef S - } - } if (! err) *newhandle = ports_get_right (newauth); -- cgit v1.2.3