diff options
-rw-r--r-- | libtrivfs/file-getcontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libtrivfs/file-getcontrol.c b/libtrivfs/file-getcontrol.c index e596a19d..f4019944 100644 --- a/libtrivfs/file-getcontrol.c +++ b/libtrivfs/file-getcontrol.c @@ -27,7 +27,7 @@ trivfs_S_file_getcontrol (struct protid *cred, if (!cred->isroot) return EPERM; - *cntl = ports_get_right (trivfs_control_port); + *cntl = ports_get_right (cred->cntl); *controltype = MACH_MSG_TYPE_MAKE_SEND; return 0; } |