From 8ad48f6ce444648397d82b107cd196c24599d7cb Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 19 Jul 1996 03:42:43 +0000 Subject: *** empty log message *** --- libnetfs/make-protid.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'libnetfs/make-protid.c') diff --git a/libnetfs/make-protid.c b/libnetfs/make-protid.c index 352698e2..7d9240a1 100644 --- a/libnetfs/make-protid.c +++ b/libnetfs/make-protid.c @@ -25,8 +25,14 @@ netfs_make_protid (struct peropen *po, struct netcred *cred) { struct protid *pi; - errno = ports_create_port (netfs_protid_class, netfs_port_bucket, - sizeof (struct protid), &pi); + if (cred) + errno = ports_create_port (netfs_protid_class, netfs_port_bucket, + sizeof (struct protid), &pi); + else + errno = ports_create_port_noinstall (netfs_protid_class, + netfs_port_bucket, + sizeof (struct protid), &pi); + if (errno) return 0; -- cgit v1.2.3