Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151065619
D49899.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
792 B
Referenced Files
None
Subscribers
None
D49899.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
@@ -285,18 +285,13 @@
if ((error = namei(ndp)) != 0)
return (error);
if (ndp->ni_vp == NULL) {
- if ((fmode & O_NAMEDATTR) != 0) {
- if ((ndp->ni_dvp->v_mount->mnt_flag &
- MNT_NAMEDATTR) == 0)
- error = EINVAL;
- else if ((vn_irflag_read(ndp->ni_dvp) &
- VIRF_NAMEDDIR) == 0)
- error = ENOENT;
- if (error != 0) {
- vp = ndp->ni_dvp;
- ndp->ni_dvp = NULL;
- goto bad;
- }
+ if ((fmode & O_NAMEDATTR) != 0 &&
+ (ndp->ni_dvp->v_mount->mnt_flag & MNT_NAMEDATTR) ==
+ 0) {
+ error = EINVAL;
+ vp = ndp->ni_dvp;
+ ndp->ni_dvp = NULL;
+ goto bad;
}
VATTR_NULL(vap);
vap->va_type = VREG;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 6:16 PM (20 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30991348
Default Alt Text
D49899.diff (792 B)
Attached To
Mode
D49899: vfs_vnops.c: Modify the O_NAMEDATTR check for Solaris compatibility
Attached
Detach File
Event Timeline
Log In to Comment