summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-12-10 19:39:42 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-12-10 19:39:42 +0000
commit00a2af65a0ef1c8a6abb13dacdb14c02d410a694 (patch)
tree9a3ef6f153a5cf303e2d324775b757b2ed217bb8 /sys/kern
parent6bc843e02893c25310016dcfb28d1dfee8dc8024 (diff)
Remove special case for O_TRUNC that is irelevant now that
we disallow O_TRUNC with O_RDONLY.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index 7e9153180ab..a1b9e44b2c4 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_vnops.c,v 1.11 1997/12/10 19:31:17 deraadt Exp $ */
+/* $OpenBSD: vfs_vnops.c,v 1.12 1997/12/10 19:39:41 millert Exp $ */
/* $NetBSD: vfs_vnops.c,v 1.20 1996/02/04 02:18:41 christos Exp $ */
/*
@@ -126,7 +126,7 @@ vn_open(ndp, fmode, cmode)
if ((error = VOP_ACCESS(vp, VREAD, cred, p)) != 0)
goto bad;
}
- if (fmode & (FWRITE | O_TRUNC)) {
+ if (fmode & FWRITE) {
if (vp->v_type == VDIR) {
error = EISDIR;
goto bad;