From: Debian FreeIPA Team Date: Wed, 19 May 2021 11:22:15 +0000 (+0100) Subject: fix-s390x-failure X-Git-Tag: archive/raspbian/1.4.4.11-2+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b0d65257c88f933120b9de3038d55109d697bd6d;p=389-ds-base.git fix-s390x-failure commit 900e6fdcf152dd696b5ae189cb1d7c67ab143bae Author: tbordaz Date: Thu Jan 28 10:39:31 2021 +0100 Issue 4563 - Failure on s390x: 'Fails to split RDN "o=pki-tomcat-CA" into components' (#4573) Bug description: SLAPI_OPERATION_TYPE is a stored/read as an int (slapi_pblock_get/set). This although the storage field is an unsigned long. Calling slapi_pblock_get with an long (8 btyes) destination creates a problem on big-endian (s390x). Fix description: Define destination op_type as an int (4 bytes) relates: https://github.com/389ds/389-ds-base/issues/4563 Reviewed by: Mark Reynolds, William Brown Platforms tested: F31 (little endian), Debian (big endian) Gbp-Pq: Name fix-s390x-failure.diff --- diff --git a/ldap/servers/slapd/back-ldbm/ldbm_modify.c b/ldap/servers/slapd/back-ldbm/ldbm_modify.c index a507f3c..49ca01d 100644 --- a/ldap/servers/slapd/back-ldbm/ldbm_modify.c +++ b/ldap/servers/slapd/back-ldbm/ldbm_modify.c @@ -216,7 +216,7 @@ error: int32_t entry_get_rdn_mods(Slapi_PBlock *pb, Slapi_Entry *entry, CSN *csn, int repl_op, Slapi_Mods **smods_ret) { - unsigned long op_type = SLAPI_OPERATION_NONE; + int op_type = SLAPI_OPERATION_NONE; char *new_rdn = NULL; char **dns = NULL; char **rdns = NULL;