diff options
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++) |