linux_name_to_handle_at: Support AT_EMPTY_PATH.
Reviewed by: kib Sponsored by: The University of Cambridge, Google Inc. Differential Revision: https://reviews.freebsd.org/D33050
This commit is contained in:
parent
a8d885296a
commit
8b2ce7a3bb
@ -282,9 +282,6 @@ linux_name_to_handle_at(struct thread *td,
|
||||
|
||||
if (args->flags & ~valid_flags)
|
||||
return (EINVAL);
|
||||
if (args->flags & LINUX_AT_EMPTY_PATH)
|
||||
/* XXX: not supported yet */
|
||||
return (EOPNOTSUPP);
|
||||
|
||||
fd = args->dirfd;
|
||||
if (fd == LINUX_AT_FDCWD)
|
||||
@ -293,6 +290,8 @@ linux_name_to_handle_at(struct thread *td,
|
||||
bsd_flags = 0;
|
||||
if (!(args->flags & LINUX_AT_SYMLINK_FOLLOW))
|
||||
bsd_flags |= AT_SYMLINK_NOFOLLOW;
|
||||
if ((args->flags & LINUX_AT_EMPTY_PATH) != 0)
|
||||
bsd_flags |= AT_EMPTY_PATH;
|
||||
|
||||
if (!LUSECONVPATH(td)) {
|
||||
error = kern_getfhat(td, bsd_flags, fd, args->name,
|
||||
|
Loading…
x
Reference in New Issue
Block a user