diff options
author | 1998-01-15 01:24:40 +0000 | |
---|---|---|
committer | 1998-01-15 01:24:40 +0000 | |
commit | b37b5e27c2fe8c9e80322cb4a6826faa7d56094e (patch) | |
tree | 26b81555f0c72bc2390bab8ab3bd32845c63408f | |
parent | For some reason the 4/300 doesn't like ncr53c9x_dmaselect. (diff) | |
download | wireguard-openbsd-b37b5e27c2fe8c9e80322cb4a6826faa7d56094e.tar.xz wireguard-openbsd-b37b5e27c2fe8c9e80322cb4a6826faa7d56094e.zip |
Re-enabled write protection on read-only file system mounts. Thanks to
Niels for pointing this one out.
-rw-r--r-- | sys/kern/vfs_vnops.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 9e6acaa698c..d5152e7facc 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_vnops.c,v 1.14 1998/01/09 16:33:49 csapuntz Exp $ */ +/* $OpenBSD: vfs_vnops.c,v 1.15 1998/01/15 01:24:40 csapuntz Exp $ */ /* $NetBSD: vfs_vnops.c,v 1.20 1996/02/04 02:18:41 christos Exp $ */ /* @@ -172,7 +172,6 @@ vn_writechk(vp) register struct vnode *vp; { -#if 0 /* * Disallow write attempts on read-only file systems; * unless the file is a socket or a block or character @@ -187,7 +186,6 @@ vn_writechk(vp) break; } } -#endif /* * If there's shared text associated with * the vnode, try to free it up once. If |