summaryrefslogtreecommitdiff
path: root/libdiskfs/file-getlinknode.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-11 22:32:19 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-11 22:32:19 +0000
commit15774e2af65cfb4bbf25b8de1823b9a9a1c4a0ee (patch)
treec6b4d5408471c8a9392f3fc675acbfc1b934c95d /libdiskfs/file-getlinknode.c
parente295cc1deae384af16f021ddd1c2521fb9f2e4ab (diff)
Formerly file-getlinknode.c.~4~
Diffstat (limited to 'libdiskfs/file-getlinknode.c')
-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;
}