From 22cc19e584c583c9e77ec139ba264f02648fe15d Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 2 Apr 1996 14:14:26 +0000 Subject: (netfs_S_file_check_access): Initialize *TYPES. --- libnetfs/file-check-access.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libnetfs') 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; -- cgit v1.2.3