summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libiohelp/ChangeLog5
-rw-r--r--libiohelp/iouser-reauth.c14
2 files changed, 10 insertions, 9 deletions
diff --git a/libiohelp/ChangeLog b/libiohelp/ChangeLog
index 9fcf3a5b..b8561ac0 100644
--- a/libiohelp/ChangeLog
+++ b/libiohelp/ChangeLog
@@ -1,3 +1,8 @@
+1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
+
+ * iouser-reauth.c (iohelp_reauth): Use munmap instead of
+ vm_deallocate.
+
1998-08-21 Roland McGrath <roland@baalperazim.frob.com>
* Makefile (SRCS): Add return-buffer.c.
diff --git a/libiohelp/iouser-reauth.c b/libiohelp/iouser-reauth.c
index a41ea734..b5db7614 100644
--- a/libiohelp/iouser-reauth.c
+++ b/libiohelp/iouser-reauth.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1996 Free Software Foundation
+ Copyright (C) 1996, 1999 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
@@ -81,17 +81,13 @@ struct iouser *iohelp_reauth (auth_t authserver, mach_port_t rend_port,
err = idvec_set_ids (new->gids, gen_gids, gengidlen);
if (gubuf != gen_uids)
- vm_deallocate (mach_task_self (), (u_int) gen_uids,
- genuidlen * sizeof (uid_t));
+ munmap (gen_uids, genuidlen * sizeof (uid_t));
if (ggbuf != gen_gids)
- vm_deallocate (mach_task_self (), (u_int) gen_gids,
- gengidlen * sizeof (uid_t));
+ munmap (gen_gids, gengidlen * sizeof (uid_t));
if (aubuf != aux_uids)
- vm_deallocate (mach_task_self (), (u_int) aux_uids,
- auxuidlen * sizeof (uid_t));
+ munmap (aux_uids, auxuidlen * sizeof (uid_t));
if (agbuf != aux_gids)
- vm_deallocate (mach_task_self (), (u_int) aux_gids,
- auxgidlen * sizeof (uid_t));
+ munmap (aux_gids, auxgidlen * sizeof (uid_t));
if (err)
{