mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:04:51 +01:00
fspick(2): use CLASS(filename_flags)
That kills the last place where we mix LOOKUP_EMPTY with lookup flags proper. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
154ef7dce6
commit
7f583ad97c
1 changed files with 3 additions and 3 deletions
|
|
@ -181,9 +181,9 @@ SYSCALL_DEFINE3(fspick, int, dfd, const char __user *, path, unsigned int, flags
|
|||
lookup_flags &= ~LOOKUP_FOLLOW;
|
||||
if (flags & FSPICK_NO_AUTOMOUNT)
|
||||
lookup_flags &= ~LOOKUP_AUTOMOUNT;
|
||||
if (flags & FSPICK_EMPTY_PATH)
|
||||
lookup_flags |= LOOKUP_EMPTY;
|
||||
ret = user_path_at(dfd, path, lookup_flags, &target);
|
||||
CLASS(filename_flags, filename)(path,
|
||||
(flags & FSPICK_EMPTY_PATH) ? LOOKUP_EMPTY : 0);
|
||||
ret = filename_lookup(dfd, filename, lookup_flags, &target, NULL);
|
||||
if (ret < 0)
|
||||
goto err;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue