On 9/27/22 13:00, Helge Deller wrote:
Signed-off-by: Helge Deller <del...@gmx.de>


+#if defined(__NR_close_range) && defined(TARGET_NR_close_range)
+    case TARGET_NR_close_range:
+        ret = get_errno(sys_close_range(arg1, arg2, arg3));
+        if (ret == 0 && !(arg3 & CLOSE_RANGE_CLOEXEC)) {
+            abi_long fd;
+            abi_long maxfd = (arg2 == (abi_long)-1) ? target_fd_max : arg2;

This check against "-1" is wrong.
Please ignore this patch - I'll resend a fixed patch.

Helge


Reply via email to