[SCM] NSS Wrapper Repository - branch master updated

Andreas Schneider asn at samba.org
Fri Jun 24 07:48:43 UTC 2022


The branch, master has been updated
       via  1139a3c nwrap: Fix endpwent and setgrent to call the functions
      from  0884724 nss_wrapper: fall back to pragma init/fini for constructor/destructor if possible

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


- Log -----------------------------------------------------------------
commit 1139a3c51395a21908e98c8edebf41037ff1369c
Author: Pavel Filipenský <pfilipen at redhat.com>
Date:   Thu Jun 23 19:29:29 2022 +0200

    nwrap: Fix endpwent and setgrent to call the functions
    
    Signed-off-by: Pavel Filipenský <pfilipen at redhat.com>
    Reviewed-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Ralph Boehme <slow at samba.org>

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

Summary of changes:
 src/nss_wrapper.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/src/nss_wrapper.c b/src/nss_wrapper.c
index d43c296..88e81d9 100644
--- a/src/nss_wrapper.c
+++ b/src/nss_wrapper.c
@@ -4487,7 +4487,7 @@ static int nwrap_module_getpwent_r(struct nwrap_backend *b,
 
 static void nwrap_module_endpwent(struct nwrap_backend *b)
 {
-	if (b->symbols->_nss_endpwent.f) {
+	if (b->symbols->_nss_endpwent.f == NULL) {
 		return;
 	}
 
@@ -4659,7 +4659,7 @@ static int nwrap_module_getgrgid_r(struct nwrap_backend *b,
 
 static void nwrap_module_setgrent(struct nwrap_backend *b)
 {
-	if (b->symbols->_nss_setgrent.f) {
+	if (b->symbols->_nss_setgrent.f == NULL) {
 		return;
 	}
 


-- 
NSS Wrapper Repository



More information about the samba-cvs mailing list