From b3b7d0d43209477edf2f8bf348ff0c45caebde53 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 25 Apr 2000 02:10:04 +0000 Subject: [PATCH] non-O_NOFOLLOW error introduced by accident, this is fragile code.. --- sys/kern/vfs_vnops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index e45b3d30c30..b9435c46086 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_vnops.c,v 1.25 2000/04/21 15:47:28 millert Exp $ */ +/* $OpenBSD: vfs_vnops.c,v 1.26 2000/04/25 02:10:04 deraadt Exp $ */ /* $NetBSD: vfs_vnops.c,v 1.20 1996/02/04 02:18:41 christos Exp $ */ /* @@ -123,6 +123,7 @@ vn_open(ndp, fmode, cmode) error = EEXIST; goto bad; } + fmode &= ~O_CREAT; } } else { ndp->ni_cnd.cn_nameiop = LOOKUP; -- 2.20.1