summaryrefslogtreecommitdiffstats
path: root/sys/miscfs
diff options
context:
space:
mode:
authorart <art@openbsd.org>1999-10-13 06:32:23 +0000
committerart <art@openbsd.org>1999-10-13 06:32:23 +0000
commitfab478201a4ebbee3623408a6701df9f0e323a4e (patch)
tree3debf1fd925a26d1a25b07f4cd3353f02fdea1b3 /sys/miscfs
parentalways add kernel to MDSETS; millert & deraadt ok'd (diff)
downloadwireguard-openbsd-fab478201a4ebbee3623408a6701df9f0e323a4e.tar.xz
wireguard-openbsd-fab478201a4ebbee3623408a6701df9f0e323a4e.zip
Don't try to call VOP_SETATTR on a pipe. From <cky@pobox.com>
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/fdesc/fdesc_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/miscfs/fdesc/fdesc_vnops.c b/sys/miscfs/fdesc/fdesc_vnops.c
index 9c5652dbd09..a9d07c7f72e 100644
--- a/sys/miscfs/fdesc/fdesc_vnops.c
+++ b/sys/miscfs/fdesc/fdesc_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdesc_vnops.c,v 1.15 1999/08/13 07:05:46 csapuntz Exp $ */
+/* $OpenBSD: fdesc_vnops.c,v 1.16 1999/10/13 06:32:23 art Exp $ */
/* $NetBSD: fdesc_vnops.c,v 1.32 1996/04/11 11:24:29 mrg Exp $ */
/*
@@ -646,11 +646,11 @@ fdesc_setattr(v)
* Can setattr the underlying vnode, but not sockets!
*/
switch (fp->f_type) {
- case DTYPE_PIPE:
case DTYPE_VNODE:
error = VOP_SETATTR((struct vnode *) fp->f_data, ap->a_vap, ap->a_cred, ap->a_p);
break;
+ case DTYPE_PIPE:
case DTYPE_SOCKET:
if (vap->va_flags != VNOVAL)
error = EOPNOTSUPP;