diff options
author | peter <peter@FreeBSD.org> | 1998-06-10 06:34:57 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-06-10 06:34:57 +0000 |
commit | e18ee5bdc0d95e2db3db25d25b61f68e157f5d54 (patch) | |
tree | f735f51659acec8cea05a07776bdcce0ba47a58a /sys/fs/portalfs | |
parent | f7008b4ff185d43e52f4fc9aea783c2334c302aa (diff) | |
download | FreeBSD-src-e18ee5bdc0d95e2db3db25d25b61f68e157f5d54.zip FreeBSD-src-e18ee5bdc0d95e2db3db25d25b61f68e157f5d54.tar.gz |
Don't silently accept attempts to change flags where they are not
supported.
Diffstat (limited to 'sys/fs/portalfs')
-rw-r--r-- | sys/fs/portalfs/portal_vnops.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/fs/portalfs/portal_vnops.c b/sys/fs/portalfs/portal_vnops.c index 12cd6b1..46c5847 100644 --- a/sys/fs/portalfs/portal_vnops.c +++ b/sys/fs/portalfs/portal_vnops.c @@ -35,7 +35,7 @@ * * @(#)portal_vnops.c 8.14 (Berkeley) 5/21/95 * - * $Id: portal_vnops.c,v 1.30 1998/03/26 20:52:31 phk Exp $ + * $Id: portal_vnops.c,v 1.31 1998/05/17 09:37:39 sos Exp $ */ /* @@ -497,6 +497,9 @@ portal_setattr(ap) if (ap->a_vp->v_flag & VROOT) return (EACCES); + if (vap->va_flags != VNOVAL) + return (EOPNOTSUPP); + return (0); } |