summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>2000-03-17 17:26:16 +0000
committerThomas Bushnell <thomas@gnu.org>2000-03-17 17:26:16 +0000
commit166c15f084adc62b6d0411dca9f65928aee479b7 (patch)
tree6762aaa4dee8739b145792121c070609256a7996
parent2ebda554322e77aa2b53682c58312f21ef61a78b (diff)
2000-03-17 Thomas Bushnell, BSG <tb@mit.edu>
* symlink.c (main): Don't use MAKE_SEND in Hurd RPC.
-rw-r--r--trans/ChangeLog4
-rw-r--r--trans/pump.c5
-rw-r--r--trans/symlink.c7
3 files changed, 12 insertions, 4 deletions
diff --git a/trans/ChangeLog b/trans/ChangeLog
index 5880a43b..7ee1db56 100644
--- a/trans/ChangeLog
+++ b/trans/ChangeLog
@@ -1,3 +1,7 @@
+2000-03-17 Thomas Bushnell, BSG <tb@mit.edu>
+
+ * symlink.c (main): Don't use MAKE_SEND in Hurd RPC.
+
2000-03-17 Roland McGrath <roland@baalperazim.frob.com>
* crash.c (S_crash_dump_task): Use ports_get_send_right.
diff --git a/trans/pump.c b/trans/pump.c
index a4014eca..562ce1b1 100644
--- a/trans/pump.c
+++ b/trans/pump.c
@@ -1,5 +1,5 @@
/* Initialize an Ethernet interface
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000 Free Software Foundation, Inc.
Written by Thomas Bushnell, BSG.
This file is part of the GNU Hurd.
@@ -258,7 +258,8 @@ start_pfinet (char *argz, int argz_len)
0, FS_TRANS_SET,
FSYS_GOAWAY_FORCE,
argz, argz_len,
- control, MACH_MSG_TYPE_MOVE_SEND);
+ control, MACH_MSG_TYPE_COPY_SEND);
+ mach_port_deallocate (mach_task_self (), control);
/* Force the C library to forget about any old cached server
access port. */
diff --git a/trans/symlink.c b/trans/symlink.c
index 24a1a30f..6235d272 100644
--- a/trans/symlink.c
+++ b/trans/symlink.c
@@ -1,5 +1,5 @@
/* Translator for S_IFLNK nodes
- Copyright (C) 1994 Free Software Foundation
+ Copyright (C) 1994, 2000 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -55,8 +55,11 @@ main (int argc, char **argv)
/* Reply to our parent */
mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_RECEIVE, &control);
+ mach_port_insert_right (mach_task_self (), control, control,
+ MACH_MSG_TYPE_MAKE_SEND);
error =
- fsys_startup (bootstrap, 0, control, MACH_MSG_TYPE_MAKE_SEND, &realnode);
+ fsys_startup (bootstrap, 0, control, MACH_MSG_TYPE_COPY_SEND, &realnode);
+ mach_port_deallocate (mach_task_self (), control);
mach_port_deallocate (mach_task_self (), bootstrap);
if (error)
{