Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161938827
D58053.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
598 B
Referenced Files
None
Subscribers
None
D58053.diff
View Options
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -1882,7 +1882,7 @@
}
if ((vn_irflag_read(nd.ni_dvp) & VIRF_NAMEDDIR) != 0) {
error = EINVAL;
- goto out;
+ goto out2;
}
VATTR_NULL(&vattr);
vattr.va_mode = ACCESSPERMS &~ td->td_proc->p_pd->pd_cmask;
@@ -1894,9 +1894,7 @@
goto out2;
#endif
error = VOP_SYMLINK(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr, syspath);
-#ifdef MAC
out2:
-#endif
VOP_VPUT_PAIR(nd.ni_dvp, error == 0 ? &nd.ni_vp : NULL, true);
vn_finished_write(mp);
NDFREE_PNBUF(&nd);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 9, 4:38 AM (4 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34799716
Default Alt Text
D58053.diff (598 B)
Attached To
Mode
D58053: vfs: Fix resource leaks in kern_symlinkat()
Attached
Detach File
Event Timeline
Log In to Comment