diff options
-rw-r--r-- | libdiskfs/io-restrict-auth.c | 5 |
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; |