For the 5 arg routines, we need to pass arg5 for the last arg, no a
second copy of arg4. Claude noticed this.

Signed-off-by: Warner Losh <[email protected]>
---
 bsd-user/freebsd/os-syscall.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c
index f430806e05..f1a49ae423 100644
--- a/bsd-user/freebsd/os-syscall.c
+++ b/bsd-user/freebsd/os-syscall.c
@@ -1317,11 +1317,11 @@ static abi_long freebsd_syscall(CPUArchState *env, int 
num, abi_long arg1,
         break;
 
     case TARGET_FREEBSD_NR_extattr_set_file: /* extattr_set_file(2) */
-        ret = do_freebsd_extattr_set_file(arg1, arg2, arg3, arg4, arg4);
+        ret = do_freebsd_extattr_set_file(arg1, arg2, arg3, arg4, arg5);
         break;
 
     case TARGET_FREEBSD_NR_extattr_get_file: /* extattr_get_file(2) */
-        ret = do_freebsd_extattr_get_file(arg1, arg2, arg3, arg4, arg4);
+        ret = do_freebsd_extattr_get_file(arg1, arg2, arg3, arg4, arg5);
         break;
 
     case TARGET_FREEBSD_NR_extattr_delete_file: /* extattr_delete_file(2) */
@@ -1341,11 +1341,11 @@ static abi_long freebsd_syscall(CPUArchState *env, int 
num, abi_long arg1,
         break;
 
     case TARGET_FREEBSD_NR_extattr_get_link: /* extattr_get_link(2) */
-        ret = do_freebsd_extattr_get_link(arg1, arg2, arg3, arg4, arg4);
+        ret = do_freebsd_extattr_get_link(arg1, arg2, arg3, arg4, arg5);
         break;
 
     case TARGET_FREEBSD_NR_extattr_set_link: /* extattr_set_link(2) */
-        ret = do_freebsd_extattr_set_link(arg1, arg2, arg3, arg4, arg4);
+        ret = do_freebsd_extattr_set_link(arg1, arg2, arg3, arg4, arg5);
         break;
 
     case TARGET_FREEBSD_NR_extattr_delete_link: /* extattr_delete_link(2) */
@@ -1357,7 +1357,7 @@ static abi_long freebsd_syscall(CPUArchState *env, int 
num, abi_long arg1,
         break;
 
     case TARGET_FREEBSD_NR_extattr_list_file: /* extattr_list_file(2) */
-        ret = do_freebsd_extattr_list_file(arg1, arg2, arg3,  arg4);
+        ret = do_freebsd_extattr_list_file(arg1, arg2, arg3, arg4);
         break;
 
     case TARGET_FREEBSD_NR_extattr_list_link: /* extattr_list_link(2) */

-- 
2.52.0


Reply via email to