Skip to content
Commit ab104923 authored by Al Viro's avatar Al Viro
Browse files

namei: take increment of nd->depth into pick_link()



Makes the situation much more regular - we avoid a strange state
when the element just after the top of stack is used to store
struct path of symlink, but isn't counted in nd->depth.  This
is much more regular, so the normal failure exits, etc., work
fine.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1cf2665b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment