From e35ca099d7b178d4a14788f253d5e5e9c62c77dd Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 10 May 1994 19:37:24 +0000 Subject: Formerly io-restrict-auth.c.~4~ --- libtrivfs/io-restrict-auth.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libtrivfs/io-restrict-auth.c') 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++) -- cgit v1.2.3