tests: Fix fake socket_wrapper_syscall_valid() master
authorAndreas Schneider <asn@samba.org>
Mon, 7 Aug 2023 12:22:54 +0000 (14:22 +0200)
committerAndreas Schneider <asn@samba.org>
Mon, 7 Aug 2023 12:27:39 +0000 (14:27 +0200)
commitc8bf3ae675b47726d65e83e3abf62cafa93b12e6
treec2503ea4689c19b72371bb09b46ff40b246c8a54
parent850f24c6366abda30bfd77734b90330b8809d306
tests: Fix fake socket_wrapper_syscall_valid()

We want to return errno = ENOSYS in socket_wrapper_syscall_va(). However if we
do not handle __FAKE_SOCKET_WRAPPER_SYSCALL_NO+1 then we will call
libc_syscall() for __FAKE_SOCKET_WRAPPER_SYSCALL_NO+1.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15445
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15448

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
tests/uwrap_fake_socket_wrapper.c