diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-05-10 19:37:24 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-05-10 19:37:24 +0000 |
commit | e35ca099d7b178d4a14788f253d5e5e9c62c77dd (patch) | |
tree | 9b89e34fe570333f360b34130b7a807d11c79720 /libtrivfs | |
parent | c34913a14b4ba10ee7aa2987d915907827cfa9be (diff) |
Formerly io-restrict-auth.c.~4~
Diffstat (limited to 'libtrivfs')
-rw-r--r-- | libtrivfs/io-restrict-auth.c | 5 |
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++) |