sysdeps/linux: fix sys_accept
@@ -555,7 +555,7 @@ int sys_accept(int fd, int *newfd, struct sockaddr *addr_ptr, socklen_t *addr_le
auto ret = do_syscall(SYS_accept, fd, addr_ptr, addr_length, 0, 0, 0);
if (int e = sc_error(ret); e)
return e;
- *newfd = fd;
+ *newfd = sc_int_result<int>(ret);
return 0;
}
