summaryrefslogtreecommitdiff
path: root/libtrivfs/file-getcontrol.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtrivfs/file-getcontrol.c')
-rw-r--r--libtrivfs/file-getcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtrivfs/file-getcontrol.c b/libtrivfs/file-getcontrol.c
index 37e90b1a..83e35034 100644
--- a/libtrivfs/file-getcontrol.c
+++ b/libtrivfs/file-getcontrol.c
@@ -28,7 +28,7 @@ trivfs_S_file_getcontrol (struct trivfs_protid *cred,
if (!cred->isroot)
return EPERM;
- *cntl = ports_get_right (cred->cntl);
+ *cntl = ports_get_right (cred->po->cntl);
*cntltype = MACH_MSG_TYPE_MAKE_SEND;
return 0;
}