summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/file-getlinknode.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libdiskfs/file-getlinknode.c b/libdiskfs/file-getlinknode.c
index 8c10f62b..2b968b72 100644
--- a/libdiskfs/file-getlinknode.c
+++ b/libdiskfs/file-getlinknode.c
@@ -33,10 +33,7 @@ diskfs_S_file_getlinknode (struct protid *cred,
if (np == diskfs_root_node)
return EBUSY;
- /* XXX -- this is wrong; port management code for protids
- only allows a port to be given out once; we need to
- send a new protid unfortunately. */
- *port = cred->pi.port;
+ *port = ports_get_right (cred);
*portpoly = MACH_MSG_TYPE_MAKE_SEND;
return 0;
}