linux-user: Fix SO_ERROR return code of getsockopt()
commitcb88b7c214511736fa3bc1d9e57b23efcc61d8ab
authorHelge Deller <deller@gmx.de>
Fri, 27 Jan 2023 20:25:27 +0000 (27 21:25 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Fri, 3 Feb 2023 21:55:12 +0000 (3 22:55 +0100)
tree19fa88dbf687c520e25d9eb9641726f4367861c5
parent95fc5ed4a86b0d173bf55daf32e1697d11062648
linux-user: Fix SO_ERROR return code of getsockopt()

Add translation for the host error return code of:
    getsockopt(19, SOL_SOCKET, SO_ERROR, [ECONNREFUSED], [4]) = 0

This fixes the testsuite of the cockpit debian package with a
hppa-linux guest on a x86-64 host.

Signed-off-by: Helge Deller <deller@gmx.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <Y9QzNzXg0hrzHQeo@p100>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c