diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-08 22:46:51 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-08 22:46:51 +0000 |
commit | 832ccaf549d0b508e6228d6f6aed127196763958 (patch) | |
tree | 44d64bacf0e60e8e1d5fd6c120bfac02769672b9 /sys | |
parent | 8baf42e558e88226895e5eae3ef88f9467ab0444 (diff) |
chflags not permitted
Diffstat (limited to 'sys')
-rw-r--r-- | sys/nfs/nfs_vnops.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index a657655ac38..23ace0411ba 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_vnops.c,v 1.13 1997/01/31 10:33:46 deraadt Exp $ */ +/* $OpenBSD: nfs_vnops.c,v 1.14 1997/04/08 22:46:50 deraadt Exp $ */ /* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */ /* @@ -582,9 +582,15 @@ nfs_setattr(v) u_quad_t tsize = 0; /* + * Setting of flags is not supported. + */ + if (vap->va_flags != VNOVAL) + return (EOPNOTSUPP); + + /* * Disallow write attempts if the filesystem is mounted read-only. */ - if ((vap->va_flags != VNOVAL || vap->va_uid != (uid_t)VNOVAL || + if ((vap->va_uid != (uid_t)VNOVAL || vap->va_gid != (gid_t)VNOVAL || vap->va_atime.tv_sec != VNOVAL || vap->va_mtime.tv_sec != VNOVAL || vap->va_mode != (mode_t)VNOVAL) && (vp->v_mount->mnt_flag & MNT_RDONLY)) |