summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-08-29 16:52:28 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-08-29 16:52:28 +0000
commit4a4f1e38a350098b9802fc73e4adeb1381a7c94f (patch)
tree3e3d7a737bbd933aea01bfef5a6bdf2a2c633478
parent43181a9ef29d46a86c874779e8e5691685f7ba4d (diff)
entered into RCS
-rw-r--r--libdiskfs/io-reauthenticate.c5
-rw-r--r--libtrivfs/io-reauthenticate.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/libdiskfs/io-reauthenticate.c b/libdiskfs/io-reauthenticate.c
index 38670b65..d7ec8dd2 100644
--- a/libdiskfs/io-reauthenticate.c
+++ b/libdiskfs/io-reauthenticate.c
@@ -21,7 +21,7 @@
/* Implement io_reathenticate as described in <hurd/io.defs>. */
kern_return_t
diskfs_S_io_reauthenticate (struct protid *cred,
- int rend_int)
+ mach_port_t rend_port)
{
struct protid *newcred;
uid_t gubuf[20], ggbuf[20], aubuf[20], agbuf[20];
@@ -43,7 +43,8 @@ diskfs_S_io_reauthenticate (struct protid *cred,
err = auth_server_authenticate (diskfs_auth_server_port,
ports_get_right (cred),
MACH_MSG_TYPE_MAKE_SEND,
- rend_int,
+ rend_port,
+ MACH_MSG_TYPE_MOVE_SEND,
ports_get_right (newcred),
MACH_MSG_TYPE_MAKE_SEND,
&gen_uids, &genuidlen,
diff --git a/libtrivfs/io-reauthenticate.c b/libtrivfs/io-reauthenticate.c
index 5fa00ddb..4adffab0 100644
--- a/libtrivfs/io-reauthenticate.c
+++ b/libtrivfs/io-reauthenticate.c
@@ -28,7 +28,7 @@ kern_return_t
trivfs_S_io_reauthenticate (struct trivfs_protid *cred,
mach_port_t reply,
mach_msg_type_name_t replytype,
- int rendint)
+ mach_port_t rendport)
{
struct trivfs_protid *newcred;
uid_t gubuf[20], ggbuf[20], aubuf[20], agbuf[20];
@@ -52,7 +52,8 @@ trivfs_S_io_reauthenticate (struct trivfs_protid *cred,
err = auth_server_authenticate (auth,
ports_get_right (cred),
MACH_MSG_TYPE_MAKE_SEND,
- rendint,
+ rendport,
+ MACH_MSG_TYPE_MOVE_SEND,
ports_get_right (newcred),
MACH_MSG_TYPE_MAKE_SEND,
&gen_uids, &genuidlen,