diff mbox series

[44/66] bsd-user: do_freebsd__acl_aclcheck_file pass type to __acl_aclcheck_file

Message ID 20260515-misc-2026q2-v1-44-5438ca41b27a@bsdimp.com
State New
Headers show
Series bsd-user: Upstream most of the remaining system calls | expand

Commit Message

Warner Losh May 15, 2026, 9:19 p.m. UTC
We convert arg2 to the right type, but then pass arg2. This a logical
error only, since target and host types are encoded identically.

Signed-off-by: Warner Losh <imp@bsdimp.com>
---
 bsd-user/freebsd/os-extattr.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/bsd-user/freebsd/os-extattr.h b/bsd-user/freebsd/os-extattr.h
index 70446f9a54..0414a2e479 100644
--- a/bsd-user/freebsd/os-extattr.h
+++ b/bsd-user/freebsd/os-extattr.h
@@ -413,7 +413,7 @@  static inline abi_long do_freebsd__acl_aclcheck_file(abi_ulong arg1,
     }
     ret = t2h_freebsd_acl(&host_acl, arg3);
     if (!is_error(ret)) {
-        ret = get_errno(__acl_aclcheck_file(path(p) , arg2, &host_acl));
+        ret = get_errno(__acl_aclcheck_file(path(p), type, &host_acl));
     }
     unlock_user(p, arg1, 0);