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/miscfs/nullfs | |
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/miscfs/nullfs')
-rw-r--r-- | sys/miscfs/nullfs/null_vnops.c | 6 |
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: |