summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-05-10 19:37:24 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-05-10 19:37:24 +0000
commite35ca099d7b178d4a14788f253d5e5e9c62c77dd (patch)
tree9b89e34fe570333f360b34130b7a807d11c79720
parentc34913a14b4ba10ee7aa2987d915907827cfa9be (diff)
Formerly io-restrict-auth.c.~4~
-rw-r--r--libtrivfs/io-restrict-auth.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libtrivfs/io-restrict-auth.c b/libtrivfs/io-restrict-auth.c
index e091a84a..7d4d0f7a 100644
--- a/libtrivfs/io-restrict-auth.c
+++ b/libtrivfs/io-restrict-auth.c
@@ -34,8 +34,11 @@ trivfs_S_io_restrict_auth (struct protid *cred,
if (!cred)
return EOPNOTSUPP;
- newcred = ports_allocate_port (sizeof (struct protid), PT_PROTID);
+ newcred = ports_allocate_port (sizeof (struct protid),
+ trivfs_protid_porttype);
newcred->isroot = 0;
+ newcred->cntl = cred->cntl;
+ ports_port_ref (newcred->cntl);
if (cred->isroot)
{
for (i = 0; i < nuids; i++)