summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdiskfs/io-restrict-auth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libdiskfs/io-restrict-auth.c b/libdiskfs/io-restrict-auth.c
index c400b5e7..e1cc01da 100644
--- a/libdiskfs/io-restrict-auth.c
+++ b/libdiskfs/io-restrict-auth.c
@@ -56,8 +56,9 @@ diskfs_S_io_restrict_auth (struct protid *cred,
newgids[newngids++] = cred->gids[i];
mutex_lock (&cred->po->np->lock);
- *newport = (diskfs_make_protid (cred->po, newuids, newnuids, newgids,
- newngids))->pi.port;
+ *newport = (ports_get_right
+ (diskfs_make_protid (cred->po, newuids, newnuids, newgids,
+ newngids)));
mutex_unlock (&cred->po->np->lock);
*newportpoly = MACH_MSG_TYPE_MAKE_SEND;
return 0;