From 11a257ac8fe0a5388bb429d04a22a16f6062604b Mon Sep 17 00:00:00 2001 From: chopps Date: Thu, 6 Oct 1994 18:41:26 +0000 Subject: [PATCH] fix access check to honor mount arg, from Michael Hitch (osymh@gemini.oscs.montana.edu) --- sys/adosfs/advnops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/adosfs/advnops.c b/sys/adosfs/advnops.c index 5d5cf7f4691e..9bb0642b4079 100644 --- a/sys/adosfs/advnops.c +++ b/sys/adosfs/advnops.c @@ -1,4 +1,4 @@ -/* $NetBSD: advnops.c,v 1.10 1994/08/30 23:06:48 chopps Exp $ */ +/* $NetBSD: advnops.c,v 1.11 1994/10/06 18:41:26 chopps Exp $ */ /* * Copyright (c) 1994 Christian E. Hopps @@ -764,7 +764,7 @@ adosfs_access(sp) if (mode & VWRITE) mask |= S_IWOTH; found: - if ((adunixprot(ap->adprot) & mask) != mask) + if ((adunixprot(ap->adprot) & ap->amp->mask & mask) != mask) error = EACCES; #ifdef ADOSFS_DIAGNOSTIC printf(" %d)", error);