From 00a2af65a0ef1c8a6abb13dacdb14c02d410a694 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 10 Dec 1997 19:39:42 +0000 Subject: Remove special case for O_TRUNC that is irelevant now that we disallow O_TRUNC with O_RDONLY. --- sys/kern/vfs_vnops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern') 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; -- cgit v1.2.3