diff options
author | Thomas Bushnell <thomas@gnu.org> | 2000-03-17 17:24:31 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 2000-03-17 17:24:31 +0000 |
commit | 540406a2093f6803c508120f65e3ba80da1ec5ba (patch) | |
tree | 0f29201d6ada29670fccf65021443833d28cd252 /sutils | |
parent | 3bfb22b5bdb00da6335be154d7fd851cefd00876 (diff) |
2000-03-17 Thomas Bushnell, BSG <tb@mit.edu>
* clookup.c (file_name_lookup_carefully): Don't use MOVE_SEND in
Hurd RPC.
Diffstat (limited to 'sutils')
-rw-r--r-- | sutils/ChangeLog | 5 | ||||
-rw-r--r-- | sutils/clookup.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sutils/ChangeLog b/sutils/ChangeLog index 11c34ba9..342da6ef 100644 --- a/sutils/ChangeLog +++ b/sutils/ChangeLog @@ -1,3 +1,8 @@ +2000-03-17 Thomas Bushnell, BSG <tb@mit.edu> + + * clookup.c (file_name_lookup_carefully): Don't use MOVE_SEND in + Hurd RPC. + 1999-12-03 Roland McGrath <roland@baalperazim.frob.com> * MAKEDEV.sh (mkdev: full): New device, using /hurd/null --full. diff --git a/sutils/clookup.c b/sutils/clookup.c index d0f69d9b..8fe015e1 100644 --- a/sutils/clookup.c +++ b/sutils/clookup.c @@ -1,6 +1,6 @@ /* Careful filename lookup - Copyright (C) 1996, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1996, 1998, 1999, 2000 Free Software Foundation, Inc. Written by Miles Bader <miles@gnu.ai.mit.edu> @@ -106,10 +106,11 @@ file_name_lookup_carefully (const char *name, int flags, mode_t mode) { file_t old_node = *node; err = fsys_getroot (fsys, - unauth_dir, MACH_MSG_TYPE_MOVE_SEND, + unauth_dir, MACH_MSG_TYPE_COPY_SEND, uids, num_uids, gids, num_gids, flags & ~O_NOTRANS, retry, retry_name, node); + mach_port_deallocate (mach_task_self (), unauth_dir); if (! err) mach_port_deallocate (mach_task_self (), old_node); } |