From a14592540644c73578c76f18fd3ff8e245549248 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 26 Sep 1996 18:50:04 +0000 Subject: (trivfs_S_file_check_access): Return CRED->realnode's access bits rather than always 0. --- libtrivfs/file-access.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'libtrivfs/file-access.c') 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; } -- cgit v1.2.3