From a64e5fa386cf57e35051d47f600deba150c74392 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 17 Mar 2000 10:36:19 +0000 Subject: 2000-03-17 Roland McGrath * dir-lookup.c (diskfs_S_dir_lookup): Use ports_get_send_right. --- libdiskfs/dir-lookup.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libdiskfs/dir-lookup.c b/libdiskfs/dir-lookup.c index 91e9ea48..489b4dd8 100644 --- a/libdiskfs/dir-lookup.c +++ b/libdiskfs/dir-lookup.c @@ -255,9 +255,7 @@ diskfs_S_dir_lookup (struct protid *dircred, if (error) goto out; - dirport = ports_get_right (newpi); - mach_port_insert_right (mach_task_self (), dirport, dirport, - MACH_MSG_TYPE_MAKE_SEND); + dirport = ports_get_send_right (newpi); ports_port_deref (newpi); if (np != dnp) mutex_unlock (&dnp->lock); -- cgit v1.2.3