Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F172497197
D50531.id156049.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
772 B
Referenced Files
None
Subscribers
None
D50531.id156049.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
Sat, Sep 19, 9:04 PM (25 m, 24 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39250159
Default Alt Text
D50531.id156049.diff (772 B)
Attached To
Mode
D50531: vfs: Don't clobber namei flags in vn_open_cred()
Attached
Detach File
Event Timeline
Log In to Comment