From c31659619422d869467178436cd290277a1eef8a Mon Sep 17 00:00:00 2001 From: Michael Tokarev Date: Thu, 6 Feb 2025 18:11:02 +0300 Subject: [PATCH] Revert "ldb: User hexchars_upper from replace.h" Forwarded: not-needed Debian-Specific: yes This reverts commit 542cf01bfe530a83dfbc8a606d182c0a5a622059. This commit switched ldb code to use hexchars_upper from libreplace, introducing circular dependency between libraries. Restore the status-quo. Gbp-Pq: Name revert-ldb-use-hexchars_upper-from-replace.h.patch --- lib/ldb/common/ldb_dn.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ldb/common/ldb_dn.c b/lib/ldb/common/ldb_dn.c index 5b8c0f4f..1321f0d8 100644 --- a/lib/ldb/common/ldb_dn.c +++ b/lib/ldb/common/ldb_dn.c @@ -232,10 +232,11 @@ static int ldb_dn_escape_internal(char *dst, const char *src, int len) case '\0': { /* any others get \XX form */ unsigned char v; + const char *hexbytes = "0123456789ABCDEF"; v = (const unsigned char)c; *d++ = '\\'; - *d++ = hexchars_upper[v>>4]; - *d++ = hexchars_upper[v&0xF]; + *d++ = hexbytes[v>>4]; + *d++ = hexbytes[v&0xF]; break; } default: -- 2.30.2