]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
do_open_execat(): don't care about LOOKUP_EMPTY
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 20 Sep 2024 04:48:51 +0000 (00:48 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 16 Jan 2026 17:52:03 +0000 (12:52 -0500)
do_file_open() doesn't.

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

index 5dd8ff61f27a8aaadd98e76b12176af71f8291f1..a4f29d2c2d3aa2b888e87e46328ab0482ce1400b 100644 (file)
--- 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))