[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Fri Feb 12 00:11:01 UTC 2021


The branch, master has been updated
       via  b6b6925347c nsswitch pam_winbind: Fix clang compilation error
      from  8fa53985920 gpo: Security gpext rsop list only own policies

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


- Log -----------------------------------------------------------------
commit b6b6925347ca0606179f20640cbb62afc9a8fb51
Author: Gary Lockyer <gary at catalyst.net.nz>
Date:   Thu Feb 11 08:59:55 2021 +1300

    nsswitch pam_winbind: Fix clang compilation error
    
    Fix clang compilation error:
       error: format string is not a string literal [-Werror,-Wformat-nonliteral]
    
    Signed-off-by: Gary Lockyer <gary at catalyst.net.nz>
    Reviewed-by: Jeremy Allison <jra at samba.org>
    
    Autobuild-User(master): Jeremy Allison <jra at samba.org>
    Autobuild-Date(master): Fri Feb 12 00:10:50 UTC 2021 on sn-devel-184

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

Summary of changes:
 nsswitch/pam_winbind.c | 7 +++++++
 1 file changed, 7 insertions(+)


Changeset truncated at 500 lines:

diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index ffbad91861f..720a4b90d85 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -2050,9 +2050,16 @@ static int winbind_chauthtok_request(struct pwb_context *ctx,
 				if ((min_pwd_age > 0) &&
 				    (pwd_last_set + min_pwd_age > time(NULL))) {
 					time_t next_change = pwd_last_set + min_pwd_age;
+#if defined(__clang__)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wformat-nonliteral"
+#endif
 					_make_remark_format(ctx, PAM_ERROR_MSG,
 						_get_ntstatus_error_string("NT_STATUS_PWD_TOO_RECENT"),
 						ctime(&next_change));
+#if defined(__clang__)
+#pragma clang diagnostic pop
+#endif
 					goto done;
 				}
 				break;


-- 
Samba Shared Repository



More information about the samba-cvs mailing list