[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 08be04bb930 s4:setup:tests: Use system ldbdump if we build with system ldb via 6b4cc4ccbca python:tests: Use system ldbsearch if we built against system libldb via 9ac8dac6dbb python:tests: Use system ldbdump if we build with system ldb via 11be7d802d3 python:tests: Use system ldbsearch if we build with system libldb via 5bed51fc6f0 nsswitch:tests: Use system_or_builddir_binary() for test_rfc2307_mapping via eb6f74bd74f testprogs: Use system_or_builddir_binary() for upgradeprovision-oldrelease via 40eeec0fff8 testprogs: Use system_or_builddir_binary() for tombstones-expunge via 39468deb738 testprogs: Use system_or_builddir_binary() for test_trust_token via 1106ef7189e testprogs: Use system_or_builddir_binary() for test_special_group via 7c46c79a222 testprogs: Use system_or_builddir_binary() for test_primary_group via 605155f296c testprogs: Use system_or_builddir_binary() for test_pkinit_simple via 56b9723816f testprogs: Use system_or_builddir_binary() for test_pkinit_pac via c6cd1263275 testprogs: Use system_or_builddir_binary() for test_old_enctypes via 535bc5dca7f testprogs: Use system_or_builddir_binary() for test_net_ads_dns via 376ca5a108f testprogs: Use system_or_builddir_binary() for test_net_ads via d891e59088a testprogs: Use system_or_builddir_binary() for test_ldb_simple via c11f1912c95 testprogs: Use system_or_builddir_binary() for test_ldb via 7baa3e13f26 testprogs: Use system_or_builddir_binary() for test_ktpass via fa5cba8f6ff testprogs: Use system_or_builddir_binary() for test_kinit_mit via c9ca0f796cd testprogs: Use system_or_builddir_binary() for test_kinit_heimdal via 6b7e5059635 testprogs: Use system_or_builddir_binary() for test_client_kerberos via 68471100045 testprogs: Use system_or_builddir_binary() for renamedc via e6ab157f82c testprogs: Use system_or_builddir_binary() for ldapcmp_restoredc via 2cfe2664392 testprogs: Use system_or_builddir_binary() for functionalprep via 4981cb45dbd testprogs: Use system_or_builddir_binary() for demote-saveddb via ee11fafcc91 testprogs: Use system_or_builddir_binary() for dbcheck-oldrelease via 0aa24330c55 testprogs: Use system_or_builddir_binary() for dbcheck and runtime tests via e5910d2895e testprogs: Add system_or_builddir_binary() via 9a32c8087a6 testprogs: Fix remove_directory() from 0c931fb301c waf: Run python tests also with tr_TR locale https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 08be04bb930f8cdb370ea3d3a31907ab475d8989 Author: Andreas Schneider Date: Thu Dec 22 15:25:49 2022 +0100 s4:setup:tests: Use system ldbdump if we build with system ldb Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Fri Dec 23 15:31:31 UTC 2022 on sn-devel-184 commit 6b4cc4ccbca5a02a339d15b8b3557b5d38d70910 Author: Andreas Schneider Date: Thu Dec 22 15:29:56 2022 +0100 python:tests: Use system ldbsearch if we built against system libldb Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher commit 9ac8dac6dbbdb470f0fa0878c1fa1aeca172b73a Author: Andreas Schneider Date: Thu Dec 22 15:16:04 2022 +0100 python:tests: Use system ldbdump if we build with system ldb Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher commit 11be7d802d33d0376ec5c36ddd8d30d32b088a1e Author: Andreas Schneider Date: Thu Dec 22 14:47:25 2022 +0100 python:tests: Use system ldbsearch if we build with system libldb Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher commit 5bed51fc6f001f521ab15bd01f4e30b034b4437b Author: Andreas Schneider Date: Thu Dec 22 16:54:30 2022 +0100 nsswitch:tests: Use system_or_builddir_binary() for test_rfc2307_mapping Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher commit eb6f74bd74f4157caf5dec751f43d23a52aedf77 Author: Andreas Schneider Date: Thu Dec 22 14:43:45 2022 +0100 testprogs: Use system_or_builddir_binary() for upgradeprovision-oldrelease Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher commit 40eeec0fff8d06b3c5a6e3c92f3fa1a61802092c Author: Andreas Schneider Date: Thu Dec 22 14:42:12 2022 +0100 testprogs: Use system_or_builddir_binary() for tombstones-expunge Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher commit 39468deb738e9e8c0c7eff74a3cc6a254eaa9b00 Author: Andreas Schneider Date: Thu Dec 22 14:37:21 2022 +0100 testprogs: Use system_or_builddir_binary() for test_trust_token Signed-off-by: Andreas Schneider
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 0c931fb301c waf: Run python tests also with tr_TR locale via 24275cd800b lib:ldb: Use ldb_ascii_toupper() for case folding via a8f6fa03ef6 lib:ldb: Add ldb_ascii_toupper() via 78ca66a1a54 lib:ldb: Remove trailing white spaces in ldb_private.h via c8e3873e7e6 lib:ldb: Fix trailing whitespaces in common/ldb_utf8.c via 14751e91a52 lib:ldb: Fix trailing whitespaces in common/attrib_handlers.c from c515a5b2cc3 smbd: Make send_trans2_replies() static https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 0c931fb301c5137668db671a6d861c5b5769aa18 Author: Andreas Schneider Date: Fri Nov 18 08:49:29 2022 +0100 waf: Run python tests also with tr_TR locale BUG: https://bugzilla.samba.org/show_bug.cgi?id=15248 Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Fri Dec 23 14:17:31 UTC 2022 on sn-devel-184 commit 24275cd800b05538ae32e29cbe74529076184954 Author: Andreas Schneider Date: Thu Nov 10 14:44:59 2022 +0100 lib:ldb: Use ldb_ascii_toupper() for case folding For example there are at least two locales (tr_TR and az_AZ) in glibc having dotless i transformation different from Latin scripts and GUID versus Guid comparison would be different there (attribute name would not match in the test). See also https://en.wikipedia.org/wiki/Dotted_and_dotless_I https://lists.samba.org/archive/samba-technical/2019-December/134659.html This fixes: LC_ALL=tr_TR.UTF-8 make test BUG: https://bugzilla.samba.org/show_bug.cgi?id=15248 Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher commit a8f6fa03ef68f086e46539af4d4594b35e638e37 Author: Andreas Schneider Date: Wed Mar 23 12:45:37 2022 +0100 lib:ldb: Add ldb_ascii_toupper() BUG: https://bugzilla.samba.org/show_bug.cgi?id=15248 Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher commit 78ca66a1a54ede649ca9726e81b420993234b1cf Author: Andreas Schneider Date: Thu Nov 10 14:46:47 2022 +0100 lib:ldb: Remove trailing white spaces in ldb_private.h BUG: https://bugzilla.samba.org/show_bug.cgi?id=15248 Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher commit c8e3873e7e6677720c74882bcc63e72fb03e98cc Author: Andreas Schneider Date: Wed Mar 23 12:44:07 2022 +0100 lib:ldb: Fix trailing whitespaces in common/ldb_utf8.c BUG: https://bugzilla.samba.org/show_bug.cgi?id=15248 Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher commit 14751e91a5218c168f50e0bd998593f425f7f4c0 Author: Andreas Schneider Date: Wed Mar 23 12:43:36 2022 +0100 lib:ldb: Fix trailing whitespaces in common/attrib_handlers.c BUG: https://bugzilla.samba.org/show_bug.cgi?id=15248 Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- Summary of changes: lib/ldb/common/attrib_handlers.c | 49 ++-- lib/ldb/common/ldb_utf8.c| 12 ++ lib/ldb/include/ldb.h| 18 ++- lib/ldb/include/ldb_private.h| 23 +++ lib/ldb/wscript | 7 ++ 5 files changed, 72 insertions(+), 37 deletions(-) Changeset truncated at 500 lines: diff --git a/lib/ldb/common/attrib_handlers.c b/lib/ldb/common/attrib_handlers.c index febf2f414ca..2c30f5235a9 100644 --- a/lib/ldb/common/attrib_handlers.c +++ b/lib/ldb/common/attrib_handlers.c @@ -1,4 +1,4 @@ -/* +/* ldb database library Copyright (C) Andrew Tridgell 2005 @@ -7,7 +7,7 @@ ** NOTE! The following LGPL license applies to the ldb ** library. This does NOT imply that all of Samba is released ** under the LGPL - + This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either @@ -309,7 +309,7 @@ int ldb_comparison_binary(struct ldb_context *ldb, void *mem_ctx, compare two case insensitive strings, ignoring multiple whitespaces and leading and trailing whitespaces see rfc2252 section 8.1 - + try to optimize for the ascii case, but if we find out an utf8 codepoint revert to slower but correct function */ @@ -321,6 +321,7 @@ int ldb_comparison_fold(struct ldb_context *ldb, void *mem_ctx, char *b1, *b2; const char *u1, *u2; int ret; + while (n1 && *s1 == ' ') { s1++; n1--; }; while (n2 && *s2 == ' ') { s2++; n2--; }; @@ -345,24 +346,28 @@ int ldb_comparison_fold(struct ldb_context *ldb, void *mem_ctx, * "domainUpdates"