summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-07-03 23:55:10 +0000
committerThomas Bushnell <thomas@gnu.org>1999-07-03 23:55:10 +0000
commit771a659328bf1929bef5ccb5d443c089a438b3d3 (patch)
tree3314b2ba412a6d57b35e49e9bf8e78d09972b8dd
parente143ce039d54acb4bdfcd84f95dcf554d4a84d6a (diff)
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* clookup.c (file_name_lookup_carefully): Use munmap instead of vm_deallocate.
-rw-r--r--sutils/ChangeLog5
-rw-r--r--sutils/clookup.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/sutils/ChangeLog b/sutils/ChangeLog
index b65d49e1..70c3b594 100644
--- a/sutils/ChangeLog
+++ b/sutils/ChangeLog
@@ -1,3 +1,8 @@
+1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
+
+ * clookup.c (file_name_lookup_carefully): Use munmap instead of
+ vm_deallocate.
+
1999-06-11 Roland McGrath <roland@baalperazim.frob.com>
* fstab.c (fstypes_get): Don't free PROGRAM twice on ENOENT failure.
diff --git a/sutils/clookup.c b/sutils/clookup.c
index 0942f3e0..620ceae9 100644
--- a/sutils/clookup.c
+++ b/sutils/clookup.c
@@ -1,6 +1,6 @@
/* Careful filename lookup
- Copyright (C) 1996, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1998, 1999 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -93,8 +93,7 @@ file_name_lookup_carefully (const char *name, int flags, mode_t mode)
if (ptrans != _ptrans)
/* Deallocate out-of-line memory from file_get_translator. */
- vm_deallocate (mach_task_self (),
- (vm_address_t)ptrans, ptrans_len);
+ munmap (ptrans, ptrans_len);
err = file_get_translator_cntl (*node, &fsys);
if (! err)