summaryrefslogtreecommitdiff
path: root/libdiskfs/fsys-getroot.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/fsys-getroot.c')
-rw-r--r--libdiskfs/fsys-getroot.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libdiskfs/fsys-getroot.c b/libdiskfs/fsys-getroot.c
index 37386f5d..be05d8b1 100644
--- a/libdiskfs/fsys-getroot.c
+++ b/libdiskfs/fsys-getroot.c
@@ -38,8 +38,10 @@ diskfs_S_fsys_getroot (fsys_t controlport,
if (!pt)
return EOPNOTSUPP;
- *result = (diskfs_make_protid (diskfs_make_peropen (diskfs_root_node, flags),
- uids, nuids, gids, ngids))->pi.port;
+ *result = (ports_get_right
+ (diskfs_make_protid
+ (diskfs_make_peropen (diskfs_root_node, flags),
+ uids, nuids, gids, ngids)));
*result_poly = MACH_MSG_TYPE_MAKE_SEND;
ports_done_with_port (pt);