Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109812351
D43529.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
811 B
Referenced Files
None
Subscribers
None
D43529.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
@@ -1114,16 +1114,18 @@
kern_openat(struct thread *td, int dirfd, const char *path,
enum uio_seg pathseg, int flags, int mode)
{
- struct proc *p = td->td_proc;
+ struct proc *p;
struct filedesc *fdp;
struct pwddesc *pdp;
struct file *fp;
struct vnode *vp;
+ struct filecaps *fcaps;
struct nameidata nd;
cap_rights_t rights;
int cmode, error, indx;
indx = -1;
+ p = td->td_proc;
fdp = p->p_fd;
pdp = p->p_pd;
@@ -1229,8 +1231,6 @@
* If we haven't already installed the FD (for dupfdopen), do so now.
*/
if (indx == -1) {
- struct filecaps *fcaps;
-
#ifdef CAPABILITIES
if ((nd.ni_resflags & NIRES_STRICTREL) != 0)
fcaps = &nd.ni_filecaps;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 10, 8:49 PM (7 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16583504
Default Alt Text
D43529.diff (811 B)
Attached To
Mode
D43529: Add kern_openatfp(9)
Attached
Detach File
Event Timeline
Log In to Comment