summaryrefslogtreecommitdiff
path: root/libdiskfs/io-reauthenticate.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-05-09 16:13:32 +0000
committerRoland McGrath <roland@gnu.org>1996-05-09 16:13:32 +0000
commit0b62d21c6e49240612be85446240a272f6a3c401 (patch)
tree75453e412443e851e02775374c9a9eaed5c0ec08 /libdiskfs/io-reauthenticate.c
parent94e952aac425beb54b731a59f0cc72d09ed9dbec (diff)
(diskfs_S_io_reauthenticate): Don't pass CRED port in
auth_server_authenticate.
Diffstat (limited to 'libdiskfs/io-reauthenticate.c')
-rw-r--r--libdiskfs/io-reauthenticate.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/libdiskfs/io-reauthenticate.c b/libdiskfs/io-reauthenticate.c
index 76a2f5a0..f29c94ca 100644
--- a/libdiskfs/io-reauthenticate.c
+++ b/libdiskfs/io-reauthenticate.c
@@ -1,4 +1,4 @@
-/*
+/*
Copyright (C) 1994, 1995, 1996 Free Software Foundation
This program is free software; you can redistribute it and/or
@@ -20,7 +20,7 @@
/* Implement io_reathenticate as described in <hurd/io.defs>. */
kern_return_t
-diskfs_S_io_reauthenticate (struct protid *cred,
+diskfs_S_io_reauthenticate (struct protid *cred,
mach_port_t rend_port)
{
struct protid *newcred;
@@ -46,14 +46,12 @@ diskfs_S_io_reauthenticate (struct protid *cred,
return err;
}
- err = auth_server_authenticate (diskfs_auth_server_port,
- ports_get_right (cred),
- MACH_MSG_TYPE_MAKE_SEND,
+ err = auth_server_authenticate (diskfs_auth_server_port,
rend_port,
MACH_MSG_TYPE_MOVE_SEND,
ports_get_right (newcred),
MACH_MSG_TYPE_MAKE_SEND,
- &gen_uids, &genuidlen,
+ &gen_uids, &genuidlen,
&aux_uids, &auxuidlen,
&gen_gids, &gengidlen,
&aux_gids, &auxgidlen);
@@ -76,6 +74,6 @@ diskfs_S_io_reauthenticate (struct protid *cred,
if (agbuf != aux_gids)
vm_deallocate (mach_task_self (), (u_int) aux_gids,
auxgidlen * sizeof (uid_t));
-
+
return 0;
}