summaryrefslogtreecommitdiff
path: root/libnetfs/init-startup.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>2000-03-17 17:21:45 +0000
committerThomas Bushnell <thomas@gnu.org>2000-03-17 17:21:45 +0000
commita1bd308813e6890f5877b10a1a0984d822c84b7e (patch)
tree73a1832119480a7cf7ac441fd38cdeaac0d50be3 /libnetfs/init-startup.c
parent13caaeb34153080209b31355ac650c0d8a641aff (diff)
2000-03-17 Thomas Bushnell, BSG <tb@mit.edu>
* file-exec.c (netfs_S_file_exec): Don't use MAKE_SEND in Hurd RPC. * init-startup.c (netfs_startup): Likewise.
Diffstat (limited to 'libnetfs/init-startup.c')
-rw-r--r--libnetfs/init-startup.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libnetfs/init-startup.c b/libnetfs/init-startup.c
index c457441b..69017285 100644
--- a/libnetfs/init-startup.c
+++ b/libnetfs/init-startup.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
Written by Michael I. Bushnell, p/BSG.
This file is part of the GNU Hurd.
@@ -26,7 +26,7 @@
mach_port_t
netfs_startup (mach_port_t bootstrap, int flags)
{
- mach_port_t realnode;
+ mach_port_t realnode, right;
struct port_info *newpi;
if (bootstrap == MACH_PORT_NULL)
@@ -36,8 +36,10 @@ netfs_startup (mach_port_t bootstrap, int flags)
sizeof (struct port_info), &newpi);
if (!errno)
{
- errno = fsys_startup (bootstrap, flags, ports_get_right (newpi),
- MACH_MSG_TYPE_MAKE_SEND, &realnode);
+ right = ports_get_send_right (newpi);
+ errno = fsys_startup (bootstrap, flags, right, MACH_MSG_TYPE_COPY_SEND,
+ &realnode);
+ mach_port_deallocate (mach_task_self (), right);
ports_port_deref (newpi);
}
if (errno)