do_last: regularize the logics around following symlinks
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 22 Apr 2015 16:10:45 +0000 (12:10 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 11 May 2015 02:18:31 +0000 (22:18 -0400)
commita5cfe2d5e14d4c2dec06b22d18050c443c7537f9
tree675ff9450e7eafa62da07c63bc4262964909246c
parentfd2805be238947eb819284189205e8de6f6c41c4
do_last: regularize the logics around following symlinks

With LOOKUP_FOLLOW we unlazy and return 1; without it we either
fail with ELOOP or, for O_PATH opens, succeed.  No need to mix
those cases...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c