HomeFreeBSD

linuxulator: ignore AT_NO_AUTOMOUNT for all stat variants

Description

linuxulator: ignore AT_NO_AUTOMOUNT for all stat variants

Commit ff39d74aa99a ignored AT_NO_AUTOMOUNT for statx(), but did not
change fstat64() or newfstatat(), which also take an equivalent flags
argument. Add a linux_to_bsd_stat_flags() helper and use it in all
three places.

PR: 281526
Reviewed by: trasz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46711

(cherry picked from commit 3cf834d069d1dcdbe464ea74624930eaf916715d)

Details

Provenance
emasteAuthored on Sep 19 2024, 9:11 PM
Reviewer
trasz
Differential Revision
D46711: linuxulator: ignore AT_NO_AUTOMOUNT for all stat variants
Parents
rGe3a9f4123f76: libpfctl: ensure we return useful error codes
Branches
Unknown
Tags
Unknown