summaryrefslogtreecommitdiff
path: root/libnetfs/file-check-access.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs/file-check-access.c')
-rw-r--r--libnetfs/file-check-access.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libnetfs/file-check-access.c b/libnetfs/file-check-access.c
index c3c278d7..8e36ede1 100644
--- a/libnetfs/file-check-access.c
+++ b/libnetfs/file-check-access.c
@@ -25,11 +25,13 @@ error_t
netfs_S_file_check_access (struct protid *user,
int *types)
{
+ error_t err;
+
if (!user)
return EOPNOTSUPP;
mutex_lock (&user->po->np->lock);
- netfs_report_access (user->credential, user->po->np, types);
+ err = netfs_report_access (user->user, user->po->np, types);
mutex_unlock (&user->po->np->lock);
- return 0;
+ return err;
}