summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-04-02 14:14:26 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-04-02 14:14:26 +0000
commit22cc19e584c583c9e77ec139ba264f02648fe15d (patch)
treeed482da43f379f7ee6b11c6a86e111e90484c943 /libnetfs
parentcd8f416c4a1930b93d6c0911d543f67c95ced54d (diff)
(netfs_S_file_check_access): Initialize *TYPES.
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;