summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-18 20:05:18 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-18 20:05:18 +0000
commit33b47d6bc20613e5ff119aa27c1419fbf25744d1 (patch)
tree2138783fb7902102185020be8bc630e29d326aba
parent232ea5be7c3437c9ab910028ba683f8913b694b9 (diff)
Formerly file-getcontrol.c.~2~
-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 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);