mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 04:23:35 +02:00
do_open_execat(): don't care about LOOKUP_EMPTY
do_file_open() doesn't. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
57cd2072bd
commit
819cb2c1dd
|
|
@ -777,8 +777,6 @@ static struct file *do_open_execat(int fd, struct filename *name, int flags)
|
|||
return ERR_PTR(-EINVAL);
|
||||
if (flags & AT_SYMLINK_NOFOLLOW)
|
||||
open_exec_flags.lookup_flags &= ~LOOKUP_FOLLOW;
|
||||
if (flags & AT_EMPTY_PATH)
|
||||
open_exec_flags.lookup_flags |= LOOKUP_EMPTY;
|
||||
|
||||
file = do_file_open(fd, name, &open_exec_flags);
|
||||
if (IS_ERR(file))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user