Page MenuHomeFreeBSD

D50531.1795453669.diff
No OneTemporary

Authored By
Unknown
Size
772 B
Referenced Files
None
Subscribers
None

D50531.1795453669.diff

diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -258,7 +258,8 @@
return (EINVAL);
else if ((fmode & (O_CREAT | O_DIRECTORY)) == O_CREAT) {
ndp->ni_cnd.cn_nameiop = CREATE;
- ndp->ni_cnd.cn_flags = open2nameif(fmode, vn_open_flags);
+ ndp->ni_cnd.cn_flags |= open2nameif(fmode, vn_open_flags);
+
/*
* Set NOCACHE to avoid flushing the cache when
* rolling in many files at once.
@@ -348,7 +349,7 @@
}
} else {
ndp->ni_cnd.cn_nameiop = LOOKUP;
- ndp->ni_cnd.cn_flags = open2nameif(fmode, vn_open_flags);
+ ndp->ni_cnd.cn_flags |= open2nameif(fmode, vn_open_flags);
ndp->ni_cnd.cn_flags |= (fmode & O_NOFOLLOW) != 0 ? NOFOLLOW :
FOLLOW;
if ((fmode & FWRITE) == 0)

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 23, 5:07 PM (7 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41935457
Default Alt Text
D50531.1795453669.diff (772 B)

Event Timeline