From 13caaeb34153080209b31355ac650c0d8a641aff Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Fri, 17 Mar 2000 17:21:24 +0000 Subject: 2000-03-17 Thomas Bushnell, BSG * fetch-root.c (fshelp_fetch_root): Don't use MAKE_SEND in Hurd RPC. --- libfshelp/fetch-root.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libfshelp/fetch-root.c') 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) -- cgit v1.2.3