From 7909062355ecc2e2b2a3544b807d4bf627826c55 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 29 Sep 1997 21:58:32 +0000 Subject: (main): Use ugids_verify_make_auth instead of ugids_verify and ugids_make_auth. --- utils/addauth.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'utils/addauth.c') diff --git a/utils/addauth.c b/utils/addauth.c index 4cf221cf..7c199989 100644 --- a/utils/addauth.c +++ b/utils/addauth.c @@ -64,16 +64,12 @@ main (int argc, char *argv[]) error (52, err, "Cannot get invoking authentication"); /* Check passwords. */ - err = ugids_verify (&frobauth.ugids, &have_uids, &have_gids, 0); - if (err == EINVAL) + err = ugids_verify_make_auth (&frobauth.ugids, &have_uids, &have_gids, 0, 0, + 0, 0, &auth); + if (err == EACCES) error (15, 0, "Invalid password"); else if (err) - error (16, err, "Cannot verify authentication"); - - /* Make an auth port with the new ids. */ - err = ugids_make_auth (&frobauth.ugids, MACH_PORT_NULL, &auth); - if (err) - error (3, err, "Authentication failure"); + error (16, err, "Authentication failure"); if (frobauth.verbose) /* A string showing which ids we will add. */ -- cgit v1.2.3