[SCM] UID Wrapper Repository - branch master updated

Andreas Schneider asn at samba.org
Tue Aug 8 08:52:27 UTC 2023


The branch, master has been updated
       via  c8bf3ae tests: Fix fake socket_wrapper_syscall_valid()
      from  850f24c cmake: Fix cmocka >= 1.1.6 find_package() in CONFIG mode

https://git.samba.org/?p=uid_wrapper.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit c8bf3ae675b47726d65e83e3abf62cafa93b12e6
Author: Andreas Schneider <asn at samba.org>
Date:   Mon Aug 7 14:22:54 2023 +0200

    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 at samba.org>
    Reviewed-by: Stefan Metzmacher <metze at samba.org>

-----------------------------------------------------------------------

Summary of changes:
 tests/uwrap_fake_socket_wrapper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/tests/uwrap_fake_socket_wrapper.c b/tests/uwrap_fake_socket_wrapper.c
index 657873a..0472b45 100644
--- a/tests/uwrap_fake_socket_wrapper.c
+++ b/tests/uwrap_fake_socket_wrapper.c
@@ -23,7 +23,7 @@
 /* simulate socket_wrapper hooks */
 bool socket_wrapper_syscall_valid(long int sysno)
 {
-	if (sysno == __FAKE_SOCKET_WRAPPER_SYSCALL_NO) {
+	if (sysno >= __FAKE_SOCKET_WRAPPER_SYSCALL_NO) {
 		return true;
 	}
 


-- 
UID Wrapper Repository



More information about the samba-cvs mailing list