aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/file-getcontrol.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/file-getcontrol.c')
-rw-r--r--libdiskfs/file-getcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/file-getcontrol.c b/libdiskfs/file-getcontrol.c
index e510a271..4f1ae23a 100644
--- a/libdiskfs/file-getcontrol.c
+++ b/libdiskfs/file-getcontrol.c
@@ -30,7 +30,7 @@ diskfs_S_file_getcontrol (struct protid *cred,
if (!cred)
return EOPNOTSUPP;
- if (!diskfs_isuid (0, cred))
+ if (!idvec_contains (cred->user->uids, 0))
error = EPERM;
else
{