提交 47f9dbd3 编写于 作者: A Al Viro

do_last(): get rid of duplicate ELOOP check

may_open() will catch it
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 55db2fd9
......@@ -3195,10 +3195,6 @@ static int do_last(struct nameidata *nd,
return error;
}
audit_inode(nd->name, nd->path.dentry, 0);
if (unlikely(d_is_symlink(nd->path.dentry))) {
error = -ELOOP;
goto out;
}
error = -EISDIR;
if ((open_flag & O_CREAT) && d_is_dir(nd->path.dentry))
goto out;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册