diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-07-19 03:42:43 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-07-19 03:42:43 +0000 |
commit | 8ad48f6ce444648397d82b107cd196c24599d7cb (patch) | |
tree | 1dbc9e6c691521e74a48a9df2b7944366a4c0922 /libnetfs/make-protid.c | |
parent | f030ef4e9d02fc0c88113a569773e49d629e9aa2 (diff) |
*** empty log message ***
Diffstat (limited to 'libnetfs/make-protid.c')
-rw-r--r-- | libnetfs/make-protid.c | 10 |
1 files changed, 8 insertions, 2 deletions
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; |