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 <[email protected]>
---
 bsd-user/freebsd/os-extattr.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 

-- 
2.52.0


Reply via email to