summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/file-check-access.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libnetfs/file-check-access.c b/libnetfs/file-check-access.c
index bd14f1e2..a6f959ff 100644
--- a/libnetfs/file-check-access.c
+++ b/libnetfs/file-check-access.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by Michael I. Bushnell, p/BSG.
This file is part of the GNU Hurd.
@@ -29,6 +29,7 @@ netfs_S_file_check_access (struct protid *user,
return EOPNOTSUPP;
mutex_lock (&user->po->np->lock);
+ *types = user->po->openstat & (O_WRITE|O_READ|O_EXEC);
netfs_report_access (user->credential, user->po->np, types);
mutex_unlock (&user->po->np->lock);
return 0;