summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-01-27 17:28:03 +0000
committerMiles Bader <miles@gnu.org>1996-01-27 17:28:03 +0000
commit8643a801890b884c59bf0ac2259579f2311139c6 (patch)
treed94166c6dc889daa48c69be83c61fc07f2bb9986 /libtrivfs
parentc30e1f77e289a63cadf988cfa989e5c603a660a3 (diff)
(trivfs_S_io_reauthenticate): Use ports_create_port instead of
ports_allocate_port, and return any error.
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/io-reauthenticate.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libtrivfs/io-reauthenticate.c b/libtrivfs/io-reauthenticate.c
index 8deffa99..2adfd919 100644
--- a/libtrivfs/io-reauthenticate.c
+++ b/libtrivfs/io-reauthenticate.c
@@ -47,9 +47,13 @@ trivfs_S_io_reauthenticate (struct trivfs_protid *cred,
aux_uids = aubuf;
aux_gids = agbuf;
- newcred = ports_allocate_port (cred->po->cntl->protid_bucket,
- sizeof (struct trivfs_protid),
- cred->po->cntl->protid_class);
+ err = ports_create_port (cred->po->cntl->protid_class,
+ cred->po->cntl->protid_bucket,
+ sizeof (struct trivfs_protid),
+ &newcred);
+ if (err)
+ return err;
+
auth = getauth ();
err = auth_server_authenticate (auth,
ports_get_right (cred),