summaryrefslogtreecommitdiff
path: root/lib/ldb-samba
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2020-10-01 15:22:12 +0300
committerJeremy Allison <jra@samba.org>2020-10-01 22:45:29 +0000
commit234957a2e4408537c5722edf04dfe03dd31bd1b1 (patch)
tree83a695221ede0ac96775a32389ba416cb1e71482 /lib/ldb-samba
parent91dc9bb6594ae78fa5109719b66e4c644339e1b7 (diff)
downloadsamba-234957a2e4408537c5722edf04dfe03dd31bd1b1.tar.gz
Fix build after removal of an extra safe_string.h
Move of strcasecmp redefine to lib/util/safe_string.h in https://gitlab.com/samba-team/samba/-/merge_requests/1507 broke build on Fedora 33 with GCC 10.2.1 for those compilation units that use ldb_att_cmp(). The reason for that is that ldb_attr_cmp() defined as #define ldb_attr_cmp(a, b) strcasecmp(a, b) because attribute names restricted to be ASCII by RFC2251 (LDAPv3 spec). A solution is to add #undef strcasecmp to all source code files which use ldb_attr_cmp(). Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Oct 1 22:45:29 UTC 2020 on sn-devel-184
Diffstat (limited to 'lib/ldb-samba')
-rw-r--r--lib/ldb-samba/ldb_matching_rules.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ldb-samba/ldb_matching_rules.c b/lib/ldb-samba/ldb_matching_rules.c
index 13edb51daaa..26f4d4ed3b5 100644
--- a/lib/ldb-samba/ldb_matching_rules.c
+++ b/lib/ldb-samba/ldb_matching_rules.c
@@ -29,6 +29,8 @@
#include "librpc/gen_ndr/ndr_dnsp.h"
#include "lib/util/smb_strtox.h"
+#undef strcasecmp
+
static int ldb_eval_transitive_filter_helper(TALLOC_CTX *mem_ctx,
struct ldb_context *ldb,
const char *attr,