summaryrefslogtreecommitdiff
path: root/libtrivfs/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtrivfs/open.c')
-rw-r--r--libtrivfs/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtrivfs/open.c b/libtrivfs/open.c
index 97e70a16..35a9452c 100644
--- a/libtrivfs/open.c
+++ b/libtrivfs/open.c
@@ -56,7 +56,7 @@ trivfs_open (struct trivfs_control *cntl,
if (! err)
{
new->user = user;
- new->isroot = idvec_contains (user->uids, 0);
+ new->isroot = _is_privileged (user->uids);
new->po = po;
new->hook = 0;