The branch, master has been updated
       via  5866fcc s4: tests: Fix nss_tests build on Solaris.
      from  4276ec7 Makefile: Add option to list all tests

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


- Log -----------------------------------------------------------------
commit 5866fcc1645366a56e68fc3d8065618131364337
Author: Tom Schulz <sch...@adi.com>
Date:   Wed Sep 16 16:55:23 2015 -0700

    s4: tests: Fix nss_tests build on Solaris.
    
    Too many arguments for Solaris getpwent_r() and getgrent_r().
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=11508
    
    Signed-off-by: Tom Schulz <sch...@adi.com>
    Reviewed-by: Jeremy Allison <j...@samba.org>
    Reviewed-by: Ralph Böhme <r...@sernet.de>
    
    Autobuild-User(master): Jeremy Allison <j...@samba.org>
    Autobuild-Date(master): Thu Sep 17 05:01:07 CEST 2015 on sn-devel-104

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

Summary of changes:
 source4/torture/local/nss_tests.c | 8 ++++++++
 1 file changed, 8 insertions(+)


Changeset truncated at 500 lines:

diff --git a/source4/torture/local/nss_tests.c 
b/source4/torture/local/nss_tests.c
index 546d7eb..e814dba 100644
--- a/source4/torture/local/nss_tests.c
+++ b/source4/torture/local/nss_tests.c
@@ -349,7 +349,11 @@ static bool test_enum_r_passwd(struct torture_context 
*tctx,
        while (1) {
                torture_comment(tctx, "Testing getpwent_r\n");
 
+#ifdef SOLARIS_GETPWENT_R
+               ret = getpwent_r(&pwd, buffer, sizeof(buffer));
+#else /* SOLARIS_GETPWENT_R */
                ret = getpwent_r(&pwd, buffer, sizeof(buffer), &pwdp);
+#endif /* SOLARIS_GETPWENT_R */
                if (ret != 0) {
                        if (ret != ENOENT) {
                                torture_comment(tctx, "got %d return code\n", 
ret);
@@ -543,7 +547,11 @@ static bool test_enum_r_group(struct torture_context *tctx,
        while (1) {
                torture_comment(tctx, "Testing getgrent_r\n");
 
+#ifdef SOLARIS_GETGRENT_R
+               ret = getgrent_r(&grp, buffer, sizeof(buffer));
+#else /* SOLARIS_GETGRENT_R */
                ret = getgrent_r(&grp, buffer, sizeof(buffer), &grpp);
+#endif /* SOLARIS_GETGRENT_R */
                if (ret != 0) {
                        if (ret != ENOENT) {
                                torture_comment(tctx, "got %d return code\n", 
ret);


-- 
Samba Shared Repository

Reply via email to