ports/emulators/qemu-devel/files/extra-patch-bsd-user-syscall.c
Juergen Lock d7878e0e9d - Three more bsd-user fixes:
- Fix fchflags(). (typo) [1]
  - Fix hw.availpages sysctl. [1]
  - Fix sysctl kern.usrstack and kern.ps_strings invoked from sysctl(8).
- Bump PORTREVISION.

Reported by:	sbruno [1]
2014-04-05 21:54:49 +00:00

12 lines
343 B
C

--- a/bsd-user/syscall.c
+++ b/bsd-user/syscall.c
@@ -627,7 +627,7 @@ abi_long do_freebsd_syscall(void *cpu_en
break;
case TARGET_FREEBSD_NR_fchflags: /* fchflags(2) */
- ret = do_bsd_fchflags(arg2, arg2);
+ ret = do_bsd_fchflags(arg1, arg2);
break;
case TARGET_FREEBSD_NR_chroot: /* chroot(2) */