Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177861213
D50531.1795453669.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
772 B
Referenced Files
None
Subscribers
None
D50531.1795453669.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D50531: vfs: Don't clobber namei flags in vn_open_cred()
Attached
Detach File
Event Timeline