From a949f182eedd16724af8fa6d8e30b66ee93070bd Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 3 Feb 1994 20:34:17 +0000 Subject: Formerly io-restrict-auth.c.~2~ --- libdiskfs/io-restrict-auth.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libdiskfs/io-restrict-auth.c b/libdiskfs/io-restrict-auth.c index 88797c42..0adc23a4 100644 --- a/libdiskfs/io-restrict-auth.c +++ b/libdiskfs/io-restrict-auth.c @@ -16,6 +16,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "priv.h" +#include "io_S.h" /* Tell if the array LIST (of size N) contains a member equal to QUERY. */ static inline int @@ -54,10 +55,10 @@ diskfs_S_io_restrict_auth (struct protid *cred, if (listmember (gids, cred->gids[i], ngids)) newgids[newngids++] = cred->gids[i]; - mutex_lock (&cred->po->ip->i_toplock); - *newport = (make_protid (cred->po, newuids, newnuids, newgids, - newngids))->fspt.pi.port; - mutex_unlock (&cred->po->ip->i_toplock); + mutex_lock (&cred->po->np->lock); + *newport = (diskfs_make_protid (cred->po, newuids, newnuids, newgids, + newngids))->fspt.pi.port; + mutex_unlock (&cred->po->np->lock); *newportpoly = MACH_MSG_TYPE_MAKE_SEND; return 0; } -- cgit v1.2.3