summaryrefslogtreecommitdiff
path: root/libfshelp/perms-iscontroller.c
diff options
context:
space:
mode:
Diffstat (limited to 'libfshelp/perms-iscontroller.c')
-rw-r--r--libfshelp/perms-iscontroller.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfshelp/perms-iscontroller.c b/libfshelp/perms-iscontroller.c
index 456da2a2..555a23db 100644
--- a/libfshelp/perms-iscontroller.c
+++ b/libfshelp/perms-iscontroller.c
@@ -30,7 +30,7 @@ fshelp_iscontroller (struct stat *st, struct iouser *user)
{
/* Permitted if USER has the superuser uid, the owner uid or if the
USER has authority over the process's effective id. */
- if (idvec_contains (user->uids, st->st_uid)
+ if (idvec_contains (user->uids, 0)
|| idvec_contains (user->uids, st->st_uid)
|| idvec_contains (user->uids, geteuid ()))
return 0;