summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libtrivfs/io-duplicate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libtrivfs/io-duplicate.c b/libtrivfs/io-duplicate.c
index 26fb0673..787fbc08 100644
--- a/libtrivfs/io-duplicate.c
+++ b/libtrivfs/io-duplicate.c
@@ -35,7 +35,9 @@ trivfs_S_io_duplicate (struct trivfs_protid *cred,
if (!cred)
return EOPNOTSUPP;
- 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->realnode = cred->realnode;
newcred->isroot = cred->isroot;
mutex_lock (&cred->po->cntl->lock);