mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
follow_dotdot(): be lazy about changing nd->path
Change nd->path only after the loop is done and only in case we hadn't ended up finding ourselves in root. Same for NO_XDEV check. That separates the "check how far back do we need to go through the mount stack" logics from the rest of .. traversal. NOTE: path_get/path_put introduced here are temporary. They will go away later in the series. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
efe772d628
commit
165200d6cb
1 changed files with 13 additions and 5 deletions
18
fs/namei.c
18
fs/namei.c
Loading…
Add table
Add a link
Reference in a new issue