summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/nullfs
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-06-10 06:34:57 +0000
committerpeter <peter@FreeBSD.org>1998-06-10 06:34:57 +0000
commite18ee5bdc0d95e2db3db25d25b61f68e157f5d54 (patch)
treef735f51659acec8cea05a07776bdcce0ba47a58a /sys/miscfs/nullfs
parentf7008b4ff185d43e52f4fc9aea783c2334c302aa (diff)
downloadFreeBSD-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/miscfs/nullfs')
-rw-r--r--sys/miscfs/nullfs/null_vnops.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/miscfs/nullfs/null_vnops.c b/sys/miscfs/nullfs/null_vnops.c
index 877fc37..a299e27 100644
--- a/sys/miscfs/nullfs/null_vnops.c
+++ b/sys/miscfs/nullfs/null_vnops.c
@@ -37,11 +37,11 @@
*
* Ancestors:
* @(#)lofs_vnops.c 1.2 (Berkeley) 6/18/92
- * $Id: null_vnops.c,v 1.26 1998/01/31 07:23:13 eivind Exp $
+ * $Id: null_vnops.c,v 1.27 1998/04/17 22:36:54 des Exp $
* ...and...
* @(#)null_vnodeops.c 1.20 92/07/07 UCLA Ficus project
*
- * $Id: null_vnops.c,v 1.26 1998/01/31 07:23:13 eivind Exp $
+ * $Id: null_vnops.c,v 1.27 1998/04/17 22:36:54 des Exp $
*/
/*
@@ -421,6 +421,8 @@ null_setattr(ap)
case VBLK:
case VSOCK:
case VFIFO:
+ if (vap->va_flags != VNOVAL)
+ return (EOPNOTSUPP);
return (0);
case VREG:
case VLNK:
OpenPOWER on IntegriCloud