diff options
author | Alexander Bokovoy <ab@samba.org> | 2020-10-01 15:22:12 +0300 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2020-10-01 22:45:29 +0000 |
commit | 234957a2e4408537c5722edf04dfe03dd31bd1b1 (patch) | |
tree | 83a695221ede0ac96775a32389ba416cb1e71482 /source4/lib | |
parent | 91dc9bb6594ae78fa5109719b66e4c644339e1b7 (diff) | |
download | samba-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 'source4/lib')
-rw-r--r-- | source4/lib/registry/ldb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c index 15419a65f64..e089355975b 100644 --- a/source4/lib/registry/ldb.c +++ b/source4/lib/registry/ldb.c @@ -27,6 +27,8 @@ #include "param/param.h" #include "lib/util/smb_strtox.h" +#undef strcasecmp + static struct hive_operations reg_backend_ldb; struct ldb_key_data |