summaryrefslogtreecommitdiff
path: root/fs/exec.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2024-09-20 00:48:51 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2026-01-16 12:52:03 -0500
commit819cb2c1dd8dc1168d5f1810182f1cf1925b4d2f (patch)
treeb0997321926fef155f2884cde8836df2f47c19ee /fs/exec.c
parent57cd2072bda9d15df427f3d38b9cab4aad3cb55f (diff)
do_open_execat(): don't care about LOOKUP_EMPTY
do_file_open() doesn't. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 5dd8ff61f27a..a4f29d2c2d3a 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -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))