diff options
author | Peter Wemm <peter@FreeBSD.org> | 1998-06-10 06:34:57 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1998-06-10 06:34:57 +0000 |
commit | 7a204420d347652842695bd5414595da449db218 (patch) | |
tree | 643a967fc7fe7aa1917ee800d9fbb47e09970797 /sys/miscfs/devfs/devfs_vnops.c | |
parent | c3a24f69d9c9e22c83b8d3814ceb9b3b5522cb92 (diff) | |
download | src-7a204420d347652842695bd5414595da449db218.tar.gz src-7a204420d347652842695bd5414595da449db218.zip |
Don't silently accept attempts to change flags where they are not
supported.
Notes
Notes:
svn path=/head/; revision=36840
Diffstat (limited to 'sys/miscfs/devfs/devfs_vnops.c')
-rw-r--r-- | sys/miscfs/devfs/devfs_vnops.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/miscfs/devfs/devfs_vnops.c b/sys/miscfs/devfs/devfs_vnops.c index c35d63f34215..92232aa8ed90 100644 --- a/sys/miscfs/devfs/devfs_vnops.c +++ b/sys/miscfs/devfs/devfs_vnops.c @@ -1,4 +1,3 @@ - /* * Copyright 1997,1998 Julian Elischer. All rights reserved. * julian@freebsd.org @@ -24,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: devfs_vnops.c,v 1.54 1998/04/19 23:32:17 julian Exp $ + * $Id: devfs_vnops.c,v 1.55 1998/05/07 04:58:32 msmith Exp $ */ @@ -523,6 +522,9 @@ devfs_setattr(struct vop_setattr_args *ap) int i; dn_p file_node; + if (vap->va_flags != VNOVAL) /* XXX needs to be implemented */ + return (EOPNOTSUPP); + if (error = devfs_vntodn(vp,&file_node)) { printf("devfs_vntodn returned %d ",error); |