Skip to content

Commit 819cb2c

Browse files
author
Al Viro
committed
do_open_execat(): don't care about LOOKUP_EMPTY
do_file_open() doesn't. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 57cd207 commit 819cb2c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

fs/exec.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,8 +777,6 @@ static struct file *do_open_execat(int fd, struct filename *name, int flags)
777777
return ERR_PTR(-EINVAL);
778778
if (flags & AT_SYMLINK_NOFOLLOW)
779779
open_exec_flags.lookup_flags &= ~LOOKUP_FOLLOW;
780-
if (flags & AT_EMPTY_PATH)
781-
open_exec_flags.lookup_flags |= LOOKUP_EMPTY;
782780

783781
file = do_file_open(fd, name, &open_exec_flags);
784782
if (IS_ERR(file))

0 commit comments

Comments
 (0)