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 aa0b568b..e596a19d 100644 --- a/libtrivfs/file-getcontrol.c +++ b/libtrivfs/file-getcontrol.c @@ -24,7 +24,7 @@ trivfs_S_file_getcontrol (struct protid *cred, { if (!cred) return EOPNOTSUPP; - if (!trivfs_isuid (0, cred)) + if (!cred->isroot) return EPERM; *cntl = ports_get_right (trivfs_control_port); |