From a1bd308813e6890f5877b10a1a0984d822c84b7e Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Fri, 17 Mar 2000 17:21:45 +0000 Subject: 2000-03-17 Thomas Bushnell, BSG * file-exec.c (netfs_S_file_exec): Don't use MAKE_SEND in Hurd RPC. * init-startup.c (netfs_startup): Likewise. --- libnetfs/init-startup.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libnetfs/init-startup.c') 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) -- cgit v1.2.3