Skip to content

Commit b79b3c1

Browse files
author
Al Viro
committed
vfs_open_tree(): use CLASS(filename_uflags)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 819cb2c commit b79b3c1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

fs/namespace.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3082,13 +3082,12 @@ static struct file *vfs_open_tree(int dfd, const char __user *filename, unsigned
30823082
lookup_flags &= ~LOOKUP_AUTOMOUNT;
30833083
if (flags & AT_SYMLINK_NOFOLLOW)
30843084
lookup_flags &= ~LOOKUP_FOLLOW;
3085-
if (flags & AT_EMPTY_PATH)
3086-
lookup_flags |= LOOKUP_EMPTY;
30873085

30883086
if (detached && !may_mount())
30893087
return ERR_PTR(-EPERM);
30903088

3091-
ret = user_path_at(dfd, filename, lookup_flags, &path);
3089+
CLASS(filename_uflags, name)(filename, flags);
3090+
ret = filename_lookup(dfd, name, lookup_flags, &path, NULL);
30923091
if (unlikely(ret))
30933092
return ERR_PTR(ret);
30943093

0 commit comments

Comments
 (0)