summaryrefslogtreecommitdiff
path: root/sutils/clookup.c
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 /sutils/clookup.c
parente143ce039d54acb4bdfcd84f95dcf554d4a84d6a (diff)
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* clookup.c (file_name_lookup_carefully): Use munmap instead of vm_deallocate.
Diffstat (limited to 'sutils/clookup.c')
-rw-r--r--sutils/clookup.c5
1 files changed, 2 insertions, 3 deletions
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)