From 33b47d6bc20613e5ff119aa27c1419fbf25744d1 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 18 Feb 1994 20:05:18 +0000 Subject: Formerly file-getcontrol.c.~2~ --- libtrivfs/file-getcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libtrivfs/file-getcontrol.c') 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); -- cgit v1.2.3