Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
5b857119
Commit
5b857119
authored
Apr 07, 2009
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make vfs_path_lookup() use starting point as root
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
2a737871
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
fs/namei.c
fs/namei.c
+4
-5
No files found.
fs/namei.c
View file @
5b857119
...
@@ -1123,21 +1123,20 @@ int vfs_path_lookup(struct dentry *dentry, struct vfsmount *mnt,
...
@@ -1123,21 +1123,20 @@ int vfs_path_lookup(struct dentry *dentry, struct vfsmount *mnt,
nd
->
last_type
=
LAST_ROOT
;
nd
->
last_type
=
LAST_ROOT
;
nd
->
flags
=
flags
;
nd
->
flags
=
flags
;
nd
->
depth
=
0
;
nd
->
depth
=
0
;
nd
->
root
.
mnt
=
NULL
;
nd
->
path
.
dentry
=
dentry
;
nd
->
path
.
dentry
=
dentry
;
nd
->
path
.
mnt
=
mnt
;
nd
->
path
.
mnt
=
mnt
;
path_get
(
&
nd
->
path
);
path_get
(
&
nd
->
path
);
nd
->
root
=
nd
->
path
;
path_get
(
&
nd
->
root
);
retval
=
path_walk
(
name
,
nd
);
retval
=
path_walk
(
name
,
nd
);
if
(
unlikely
(
!
retval
&&
!
audit_dummy_context
()
&&
nd
->
path
.
dentry
&&
if
(
unlikely
(
!
retval
&&
!
audit_dummy_context
()
&&
nd
->
path
.
dentry
&&
nd
->
path
.
dentry
->
d_inode
))
nd
->
path
.
dentry
->
d_inode
))
audit_inode
(
name
,
nd
->
path
.
dentry
);
audit_inode
(
name
,
nd
->
path
.
dentry
);
if
(
nd
->
root
.
mnt
)
{
path_put
(
&
nd
->
root
);
path_put
(
&
nd
->
root
);
nd
->
root
.
mnt
=
NULL
;
nd
->
root
.
mnt
=
NULL
;
}
return
retval
;
return
retval
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment