summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-27 15:07:29 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-27 15:07:29 +0000
commit1fcd5f26a9b373e1a1a493601af9bb30c42080ad (patch)
tree445a2cc95c79e030117852e3299003fea80f0404 /libtrivfs
parent03bee469175083b37357bb648c4cf16e71603ba0 (diff)
(trivfs_S_io_restrict_auth): Use new ports interface.
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/io-restrict-auth.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libtrivfs/io-restrict-auth.c b/libtrivfs/io-restrict-auth.c
index 1d466f69..e29aca47 100644
--- a/libtrivfs/io-restrict-auth.c
+++ b/libtrivfs/io-restrict-auth.c
@@ -60,7 +60,9 @@ trivfs_S_io_restrict_auth (struct trivfs_protid *cred,
if (listmember (gids, cred->gids[i], ngids))
newgids[newngids++] = cred->gids[i];
- newcred = ports_allocate_port (sizeof (struct trivfs_protid), cred->pi.type);
+ newcred = ports_allocate_port (cred->po->cntl->protid_bucket,
+ sizeof (struct trivfs_protid),
+ cred->po->cntl->protid_class);
newcred->isroot = 0;
mutex_lock (&cred->po->cntl->lock);
newcred->po = cred->po;