summaryrefslogtreecommitdiff
path: root/libfshelp
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>2000-03-17 17:21:24 +0000
committerThomas Bushnell <thomas@gnu.org>2000-03-17 17:21:24 +0000
commit13caaeb34153080209b31355ac650c0d8a641aff (patch)
treedd05def2b7011d2943c811a2c630543551e7e626 /libfshelp
parented1d3f38812f06fcc85ff3fc60785b2193fa08a5 (diff)
2000-03-17 Thomas Bushnell, BSG <tb@mit.edu>
* fetch-root.c (fshelp_fetch_root): Don't use MAKE_SEND in Hurd RPC.
Diffstat (limited to 'libfshelp')
-rw-r--r--libfshelp/ChangeLog5
-rw-r--r--libfshelp/fetch-root.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/libfshelp/ChangeLog b/libfshelp/ChangeLog
index 9ce5fc99..4520cb31 100644
--- a/libfshelp/ChangeLog
+++ b/libfshelp/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-17 Thomas Bushnell, BSG <tb@mit.edu>
+
+ * fetch-root.c (fshelp_fetch_root): Don't use MAKE_SEND in Hurd
+ RPC.
+
2000-03-13 Roland McGrath <roland@baalperazim.frob.com>
* start-translator-long.c (service_fsys_startup): If mach_msg fails
diff --git a/libfshelp/fetch-root.c b/libfshelp/fetch-root.c
index c712286f..0f255bff 100644
--- a/libfshelp/fetch-root.c
+++ b/libfshelp/fetch-root.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1995, 1996, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1999, 2000 Free Software Foundation, Inc.
Written by Michael I. Bushnell.
This file is part of the GNU Hurd.
@@ -69,6 +69,7 @@ fshelp_fetch_root (struct transbox *box, void *cookie,
rend = mach_reply_port ();
+ /* MAKE_SEND is safe here because we destroy REND ourselves. */
err = io_reauthenticate (port, rend,
MACH_MSG_TYPE_MAKE_SEND);
mach_port_deallocate (mach_task_self (), port);
@@ -112,7 +113,7 @@ fshelp_fetch_root (struct transbox *box, void *cookie,
{
uid_t uidarray[2] = { uid, uid };
gid_t gidarray[2] = { gid, gid };
- err = auth_makeauth (ourauth, 0, MACH_MSG_TYPE_MAKE_SEND, 0,
+ err = auth_makeauth (ourauth, 0, MACH_MSG_TYPE_COPY_SEND, 0,
uidarray, 1, uidarray, 2,
gidarray, 1, gidarray, 2, &newauth);
if (err)