summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_vnops.c
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1997-07-11 02:15:50 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1997-07-11 02:15:50 +0000
commit59c6091bb283614cdb329228f077c2d921fe1eab (patch)
tree013c339dbab065c41dc299cd6529e6e4362865d1 /sys/kern/vfs_vnops.c
parent0f077738f0d7a488c0a2b370f68a6c5fe8ab44a9 (diff)
Do not force FOLLOW (to follow symbolic links) when creating new files
Diffstat (limited to 'sys/kern/vfs_vnops.c')
-rw-r--r--sys/kern/vfs_vnops.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index 5a3a8e7a340..0d0e1406556 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_vnops.c,v 1.2 1996/03/03 17:20:28 niklas Exp $ */
+/* $OpenBSD: vfs_vnops.c,v 1.3 1997/07/11 02:15:49 tholo Exp $ */
/* $NetBSD: vfs_vnops.c,v 1.20 1996/02/04 02:18:41 christos Exp $ */
/*
@@ -77,8 +77,10 @@ vn_open(ndp, fmode, cmode)
if (fmode & O_CREAT) {
ndp->ni_cnd.cn_nameiop = CREATE;
ndp->ni_cnd.cn_flags = LOCKPARENT | LOCKLEAF;
+#if 0
if ((fmode & O_EXCL) == 0)
ndp->ni_cnd.cn_flags |= FOLLOW;
+#endif
if ((error = namei(ndp)) != 0)
return (error);
if (ndp->ni_vp == NULL) {