Index: sys/compat/linux/linux_file.c =================================================================== --- sys/compat/linux/linux_file.c +++ sys/compat/linux/linux_file.c @@ -282,9 +282,6 @@ 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 @@ bsd_flags = 0; if ((args->flags & LINUX_AT_SYMLINK_FOLLOW) != 0) bsd_flags |= AT_SYMLINK_FOLLOW; + 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,