summaryrefslogtreecommitdiff
path: root/sys/miscfs/portal
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-11 16:34:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-11 16:34:26 +0000
commit86c773a4dc4933c3cd0e78aa525859c8d82c952b (patch)
tree589fd3dd175bd415609518c99fd35cfbc1d365ef /sys/miscfs/portal
parenta4fc5b388b5d5b095e47db4f5e2719d777bc4d05 (diff)
return EOPNOTSUPP for chflags() changes; peter@freebsd
Diffstat (limited to 'sys/miscfs/portal')
-rw-r--r--sys/miscfs/portal/portal_vnops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/miscfs/portal/portal_vnops.c b/sys/miscfs/portal/portal_vnops.c
index 4a36a0bce39..a6dd01e21c8 100644
--- a/sys/miscfs/portal/portal_vnops.c
+++ b/sys/miscfs/portal/portal_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: portal_vnops.c,v 1.5 1997/11/06 05:58:41 csapuntz Exp $ */
+/* $OpenBSD: portal_vnops.c,v 1.6 1998/06/11 16:34:25 deraadt Exp $ */
/* $NetBSD: portal_vnops.c,v 1.17 1996/02/13 13:12:57 mycroft Exp $ */
/*
@@ -586,6 +586,9 @@ portal_setattr(v)
if (ap->a_vp->v_flag & VROOT)
return (EACCES);
+ if (ap->a_vap->va_flags != VNOVAL)
+ return (EOPNOTSUPP);
+
return (0);
}