summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-09-26 18:50:04 +0000
committerMiles Bader <miles@gnu.org>1996-09-26 18:50:04 +0000
commita14592540644c73578c76f18fd3ff8e245549248 (patch)
tree3326e1272663827126e799820d4c59bf7d5c14f5 /libtrivfs
parent5fd729aca2a43443b1df5ef1bf13a3992fa54ebc (diff)
(trivfs_S_file_check_access):
Return CRED->realnode's access bits rather than always 0.
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/file-access.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libtrivfs/file-access.c b/libtrivfs/file-access.c
index d017b8e1..7b9deb80 100644
--- a/libtrivfs/file-access.c
+++ b/libtrivfs/file-access.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1994 Free Software Foundation
+ Copyright (C) 1994, 1996 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -18,13 +18,14 @@
#include "priv.h"
#include "fs_S.h"
-kern_return_t
+error_t
trivfs_S_file_check_access (struct trivfs_protid *cred,
mach_port_t reply, mach_msg_type_name_t reply_type,
int *allowed)
{
- if (!cred)
+ if (! cred)
return EOPNOTSUPP;
- *allowed = 0;
+ else
+ return file_check_access (cred->realnode, allowed);
return 0;
}