zrhoffman / rpms / 389-ds-base

Forked from rpms/389-ds-base 3 years ago
Clone

Blame SOURCES/0007-Issue-51110-Fix-ASAN-ODR-warnings.patch

d69b2b
From a1cd3cf8e8b6b33ab21d5338921187a76dd9dcd0 Mon Sep 17 00:00:00 2001
d69b2b
From: Mark Reynolds <mreynolds@redhat.com>
d69b2b
Date: Fri, 22 May 2020 15:41:45 -0400
d69b2b
Subject: [PATCH 07/12] Issue 51110 - Fix ASAN ODR warnings
d69b2b
d69b2b
Description: Fixed ODR issues with glboal attributes which were duplicated from
d69b2b
             the core server into the replication and retrocl plugins.
d69b2b
d69b2b
relates: https://pagure.io/389-ds-base/issue/51110
d69b2b
d69b2b
Reviewed by: firstyear(Thanks!)
d69b2b
---
d69b2b
 ldap/servers/plugins/replication/repl5.h      | 17 +++---
d69b2b
 .../plugins/replication/repl_globals.c        | 17 +++---
d69b2b
 ldap/servers/plugins/replication/replutil.c   | 16 +++---
d69b2b
 ldap/servers/plugins/retrocl/retrocl.h        | 22 ++++----
d69b2b
 ldap/servers/plugins/retrocl/retrocl_cn.c     | 12 ++---
d69b2b
 ldap/servers/plugins/retrocl/retrocl_po.c     | 52 +++++++++----------
d69b2b
 ldap/servers/plugins/retrocl/retrocl_trim.c   | 30 +++++------
d69b2b
 7 files changed, 82 insertions(+), 84 deletions(-)
d69b2b
d69b2b
diff --git a/ldap/servers/plugins/replication/repl5.h b/ldap/servers/plugins/replication/repl5.h
d69b2b
index 873dd8a16..72b7089e3 100644
d69b2b
--- a/ldap/servers/plugins/replication/repl5.h
d69b2b
+++ b/ldap/servers/plugins/replication/repl5.h
d69b2b
@@ -280,15 +280,14 @@ struct berval *NSDS90StartReplicationRequest_new(const char *protocol_oid,
d69b2b
 int multimaster_extop_NSDS50ReplicationEntry(Slapi_PBlock *pb);
d69b2b
 
d69b2b
 /* From repl_globals.c */
d69b2b
-extern char *attr_changenumber;
d69b2b
-extern char *attr_targetdn;
d69b2b
-extern char *attr_changetype;
d69b2b
-extern char *attr_newrdn;
d69b2b
-extern char *attr_deleteoldrdn;
d69b2b
-extern char *attr_changes;
d69b2b
-extern char *attr_newsuperior;
d69b2b
-extern char *attr_changetime;
d69b2b
-extern char *attr_dataversion;
d69b2b
+extern char *repl_changenumber;
d69b2b
+extern char *repl_targetdn;
d69b2b
+extern char *repl_changetype;
d69b2b
+extern char *repl_newrdn;
d69b2b
+extern char *repl_deleteoldrdn;
d69b2b
+extern char *repl_changes;
d69b2b
+extern char *repl_newsuperior;
d69b2b
+extern char *repl_changetime;
d69b2b
 extern char *attr_csn;
d69b2b
 extern char *changetype_add;
d69b2b
 extern char *changetype_delete;
d69b2b
diff --git a/ldap/servers/plugins/replication/repl_globals.c b/ldap/servers/plugins/replication/repl_globals.c
d69b2b
index 355a0ffa1..c615c77da 100644
d69b2b
--- a/ldap/servers/plugins/replication/repl_globals.c
d69b2b
+++ b/ldap/servers/plugins/replication/repl_globals.c
d69b2b
@@ -48,15 +48,14 @@ char *changetype_delete = CHANGETYPE_DELETE;
d69b2b
 char *changetype_modify = CHANGETYPE_MODIFY;
d69b2b
 char *changetype_modrdn = CHANGETYPE_MODRDN;
d69b2b
 char *changetype_moddn = CHANGETYPE_MODDN;
d69b2b
-char *attr_changenumber = ATTR_CHANGENUMBER;
d69b2b
-char *attr_targetdn = ATTR_TARGETDN;
d69b2b
-char *attr_changetype = ATTR_CHANGETYPE;
d69b2b
-char *attr_newrdn = ATTR_NEWRDN;
d69b2b
-char *attr_deleteoldrdn = ATTR_DELETEOLDRDN;
d69b2b
-char *attr_changes = ATTR_CHANGES;
d69b2b
-char *attr_newsuperior = ATTR_NEWSUPERIOR;
d69b2b
-char *attr_changetime = ATTR_CHANGETIME;
d69b2b
-char *attr_dataversion = ATTR_DATAVERSION;
d69b2b
+char *repl_changenumber = ATTR_CHANGENUMBER;
d69b2b
+char *repl_targetdn = ATTR_TARGETDN;
d69b2b
+char *repl_changetype = ATTR_CHANGETYPE;
d69b2b
+char *repl_newrdn = ATTR_NEWRDN;
d69b2b
+char *repl_deleteoldrdn = ATTR_DELETEOLDRDN;
d69b2b
+char *repl_changes = ATTR_CHANGES;
d69b2b
+char *repl_newsuperior = ATTR_NEWSUPERIOR;
d69b2b
+char *repl_changetime = ATTR_CHANGETIME;
d69b2b
 char *attr_csn = ATTR_CSN;
d69b2b
 char *type_copyingFrom = TYPE_COPYINGFROM;
d69b2b
 char *type_copiedFrom = TYPE_COPIEDFROM;
d69b2b
diff --git a/ldap/servers/plugins/replication/replutil.c b/ldap/servers/plugins/replication/replutil.c
d69b2b
index de1e77880..39f821d12 100644
d69b2b
--- a/ldap/servers/plugins/replication/replutil.c
d69b2b
+++ b/ldap/servers/plugins/replication/replutil.c
d69b2b
@@ -64,14 +64,14 @@ get_cleattrs()
d69b2b
 {
d69b2b
     if (cleattrs[0] == NULL) {
d69b2b
         cleattrs[0] = type_objectclass;
d69b2b
-        cleattrs[1] = attr_changenumber;
d69b2b
-        cleattrs[2] = attr_targetdn;
d69b2b
-        cleattrs[3] = attr_changetype;
d69b2b
-        cleattrs[4] = attr_newrdn;
d69b2b
-        cleattrs[5] = attr_deleteoldrdn;
d69b2b
-        cleattrs[6] = attr_changes;
d69b2b
-        cleattrs[7] = attr_newsuperior;
d69b2b
-        cleattrs[8] = attr_changetime;
d69b2b
+        cleattrs[1] = repl_changenumber;
d69b2b
+        cleattrs[2] = repl_targetdn;
d69b2b
+        cleattrs[3] = repl_changetype;
d69b2b
+        cleattrs[4] = repl_newrdn;
d69b2b
+        cleattrs[5] = repl_deleteoldrdn;
d69b2b
+        cleattrs[6] = repl_changes;
d69b2b
+        cleattrs[7] = repl_newsuperior;
d69b2b
+        cleattrs[8] = repl_changetime;
d69b2b
         cleattrs[9] = NULL;
d69b2b
     }
d69b2b
     return cleattrs;
d69b2b
diff --git a/ldap/servers/plugins/retrocl/retrocl.h b/ldap/servers/plugins/retrocl/retrocl.h
d69b2b
index 06482a14c..2ce76fcec 100644
d69b2b
--- a/ldap/servers/plugins/retrocl/retrocl.h
d69b2b
+++ b/ldap/servers/plugins/retrocl/retrocl.h
d69b2b
@@ -94,17 +94,17 @@ extern int retrocl_nattributes;
d69b2b
 extern char **retrocl_attributes;
d69b2b
 extern char **retrocl_aliases;
d69b2b
 
d69b2b
-extern const char *attr_changenumber;
d69b2b
-extern const char *attr_targetdn;
d69b2b
-extern const char *attr_changetype;
d69b2b
-extern const char *attr_newrdn;
d69b2b
-extern const char *attr_newsuperior;
d69b2b
-extern const char *attr_deleteoldrdn;
d69b2b
-extern const char *attr_changes;
d69b2b
-extern const char *attr_changetime;
d69b2b
-extern const char *attr_objectclass;
d69b2b
-extern const char *attr_nsuniqueid;
d69b2b
-extern const char *attr_isreplicated;
d69b2b
+extern const char *retrocl_changenumber;
d69b2b
+extern const char *retrocl_targetdn;
d69b2b
+extern const char *retrocl_changetype;
d69b2b
+extern const char *retrocl_newrdn;
d69b2b
+extern const char *retrocl_newsuperior;
d69b2b
+extern const char *retrocl_deleteoldrdn;
d69b2b
+extern const char *retrocl_changes;
d69b2b
+extern const char *retrocl_changetime;
d69b2b
+extern const char *retrocl_objectclass;
d69b2b
+extern const char *retrocl_nsuniqueid;
d69b2b
+extern const char *retrocl_isreplicated;
d69b2b
 
d69b2b
 extern PRLock *retrocl_internal_lock;
d69b2b
 extern Slapi_RWLock *retrocl_cn_lock;
d69b2b
diff --git a/ldap/servers/plugins/retrocl/retrocl_cn.c b/ldap/servers/plugins/retrocl/retrocl_cn.c
d69b2b
index 709d7a857..5fc5f586d 100644
d69b2b
--- a/ldap/servers/plugins/retrocl/retrocl_cn.c
d69b2b
+++ b/ldap/servers/plugins/retrocl/retrocl_cn.c
d69b2b
@@ -62,7 +62,7 @@ handle_cnum_entry(Slapi_Entry *e, void *callback_data)
d69b2b
         Slapi_Attr *chattr = NULL;
d69b2b
         sval = NULL;
d69b2b
         value = NULL;
d69b2b
-        if (slapi_entry_attr_find(e, attr_changenumber, &chattr) == 0) {
d69b2b
+        if (slapi_entry_attr_find(e, retrocl_changenumber, &chattr) == 0) {
d69b2b
             slapi_attr_first_value(chattr, &sval);
d69b2b
             if (NULL != sval) {
d69b2b
                 value = slapi_value_get_berval(sval);
d69b2b
@@ -79,7 +79,7 @@ handle_cnum_entry(Slapi_Entry *e, void *callback_data)
d69b2b
         chattr = NULL;
d69b2b
         sval = NULL;
d69b2b
         value = NULL;
d69b2b
-        if (slapi_entry_attr_find(e, attr_changetime, &chattr) == 0) {
d69b2b
+        if (slapi_entry_attr_find(e, retrocl_changetime, &chattr) == 0) {
d69b2b
             slapi_attr_first_value(chattr, &sval);
d69b2b
             if (NULL != sval) {
d69b2b
                 value = slapi_value_get_berval(sval);
d69b2b
@@ -134,7 +134,7 @@ retrocl_get_changenumbers(void)
d69b2b
     cr.cr_time = 0;
d69b2b
 
d69b2b
     slapi_seq_callback(RETROCL_CHANGELOG_DN, SLAPI_SEQ_FIRST,
d69b2b
-                       (char *)attr_changenumber, /* cast away const */
d69b2b
+                       (char *)retrocl_changenumber, /* cast away const */
d69b2b
                        NULL, NULL, 0, &cr, NULL, handle_cnum_result,
d69b2b
                        handle_cnum_entry, NULL);
d69b2b
 
d69b2b
@@ -144,7 +144,7 @@ retrocl_get_changenumbers(void)
d69b2b
     slapi_ch_free((void **)&cr.cr_time);
d69b2b
 
d69b2b
     slapi_seq_callback(RETROCL_CHANGELOG_DN, SLAPI_SEQ_LAST,
d69b2b
-                       (char *)attr_changenumber, /* cast away const */
d69b2b
+                       (char *)retrocl_changenumber, /* cast away const */
d69b2b
                        NULL, NULL, 0, &cr, NULL, handle_cnum_result,
d69b2b
                        handle_cnum_entry, NULL);
d69b2b
 
d69b2b
@@ -185,7 +185,7 @@ retrocl_getchangetime(int type, int *err)
d69b2b
         return NO_TIME;
d69b2b
     }
d69b2b
     slapi_seq_callback(RETROCL_CHANGELOG_DN, type,
d69b2b
-                       (char *)attr_changenumber, /* cast away const */
d69b2b
+                       (char *)retrocl_changenumber, /* cast away const */
d69b2b
                        NULL,
d69b2b
                        NULL, 0, &cr, NULL,
d69b2b
                        handle_cnum_result, handle_cnum_entry, NULL);
d69b2b
@@ -353,7 +353,7 @@ retrocl_update_lastchangenumber(void)
d69b2b
     cr.cr_cnum = 0;
d69b2b
     cr.cr_time = 0;
d69b2b
     slapi_seq_callback(RETROCL_CHANGELOG_DN, SLAPI_SEQ_LAST,
d69b2b
-                       (char *)attr_changenumber, /* cast away const */
d69b2b
+                       (char *)retrocl_changenumber, /* cast away const */
d69b2b
                        NULL, NULL, 0, &cr, NULL, handle_cnum_result,
d69b2b
                        handle_cnum_entry, NULL);
d69b2b
 
d69b2b
diff --git a/ldap/servers/plugins/retrocl/retrocl_po.c b/ldap/servers/plugins/retrocl/retrocl_po.c
d69b2b
index d2af79b31..e1488f56b 100644
d69b2b
--- a/ldap/servers/plugins/retrocl/retrocl_po.c
d69b2b
+++ b/ldap/servers/plugins/retrocl/retrocl_po.c
d69b2b
@@ -25,17 +25,17 @@ modrdn2reple(Slapi_Entry *e, const char *newrdn, int deloldrdn, LDAPMod **ldm, c
d69b2b
 
d69b2b
 /******************************/
d69b2b
 
d69b2b
-const char *attr_changenumber = "changenumber";
d69b2b
-const char *attr_targetdn = "targetdn";
d69b2b
-const char *attr_changetype = "changetype";
d69b2b
-const char *attr_newrdn = "newrdn";
d69b2b
-const char *attr_deleteoldrdn = "deleteoldrdn";
d69b2b
-const char *attr_changes = "changes";
d69b2b
-const char *attr_newsuperior = "newsuperior";
d69b2b
-const char *attr_changetime = "changetime";
d69b2b
-const char *attr_objectclass = "objectclass";
d69b2b
-const char *attr_nsuniqueid = "nsuniqueid";
d69b2b
-const char *attr_isreplicated = "isreplicated";
d69b2b
+const char *retrocl_changenumber = "changenumber";
d69b2b
+const char *retrocl_targetdn = "targetdn";
d69b2b
+const char *retrocl_changetype = "changetype";
d69b2b
+const char *retrocl_newrdn = "newrdn";
d69b2b
+const char *retrocl_deleteoldrdn = "deleteoldrdn";
d69b2b
+const char *retrocl_changes = "changes";
d69b2b
+const char *retrocl_newsuperior = "newsuperior";
d69b2b
+const char *retrocl_changetime = "changetime";
d69b2b
+const char *retrocl_objectclass = "objectclass";
d69b2b
+const char *retrocl_nsuniqueid = "nsuniqueid";
d69b2b
+const char *retrocl_isreplicated = "isreplicated";
d69b2b
 
d69b2b
 /*
d69b2b
  * Function: make_changes_string
d69b2b
@@ -185,7 +185,7 @@ write_replog_db(
d69b2b
                   changenum, dn);
d69b2b
 
d69b2b
     /* Construct the dn of this change record */
d69b2b
-    edn = slapi_ch_smprintf("%s=%lu,%s", attr_changenumber, changenum, RETROCL_CHANGELOG_DN);
d69b2b
+    edn = slapi_ch_smprintf("%s=%lu,%s", retrocl_changenumber, changenum, RETROCL_CHANGELOG_DN);
d69b2b
 
d69b2b
     /*
d69b2b
      * Create the entry struct, and fill in fields common to all types
d69b2b
@@ -214,7 +214,7 @@ write_replog_db(
d69b2b
             attributeAlias = attributeName;
d69b2b
         }
d69b2b
 
d69b2b
-        if (strcasecmp(attributeName, attr_nsuniqueid) == 0) {
d69b2b
+        if (strcasecmp(attributeName, retrocl_nsuniqueid) == 0) {
d69b2b
             Slapi_Entry *entry = NULL;
d69b2b
             const char *uniqueId = NULL;
d69b2b
 
d69b2b
@@ -236,7 +236,7 @@ write_replog_db(
d69b2b
 
d69b2b
             extensibleObject = 1;
d69b2b
 
d69b2b
-        } else if (strcasecmp(attributeName, attr_isreplicated) == 0) {
d69b2b
+        } else if (strcasecmp(attributeName, retrocl_isreplicated) == 0) {
d69b2b
             int isReplicated = 0;
d69b2b
             char *attributeValue = NULL;
d69b2b
 
d69b2b
@@ -298,17 +298,17 @@ write_replog_db(
d69b2b
     sprintf(chnobuf, "%lu", changenum);
d69b2b
     val.bv_val = chnobuf;
d69b2b
     val.bv_len = strlen(chnobuf);
d69b2b
-    slapi_entry_add_values(e, attr_changenumber, vals);
d69b2b
+    slapi_entry_add_values(e, retrocl_changenumber, vals);
d69b2b
 
d69b2b
     /* Set the targetentrydn attribute */
d69b2b
     val.bv_val = dn;
d69b2b
     val.bv_len = strlen(dn);
d69b2b
-    slapi_entry_add_values(e, attr_targetdn, vals);
d69b2b
+    slapi_entry_add_values(e, retrocl_targetdn, vals);
d69b2b
 
d69b2b
     /* Set the changeTime attribute */
d69b2b
     val.bv_val = format_genTime(curtime);
d69b2b
     val.bv_len = strlen(val.bv_val);
d69b2b
-    slapi_entry_add_values(e, attr_changetime, vals);
d69b2b
+    slapi_entry_add_values(e, retrocl_changetime, vals);
d69b2b
     slapi_ch_free((void **)&val.bv_val);
d69b2b
 
d69b2b
     /*
d69b2b
@@ -344,7 +344,7 @@ write_replog_db(
d69b2b
             /* Set the changetype attribute */
d69b2b
             val.bv_val = "delete";
d69b2b
             val.bv_len = 6;
d69b2b
-            slapi_entry_add_values(e, attr_changetype, vals);
d69b2b
+            slapi_entry_add_values(e, retrocl_changetype, vals);
d69b2b
         }
d69b2b
         break;
d69b2b
 
d69b2b
@@ -422,7 +422,7 @@ entry2reple(Slapi_Entry *e, Slapi_Entry *oe, int optype)
d69b2b
     } else {
d69b2b
         return (1);
d69b2b
     }
d69b2b
-    slapi_entry_add_values(e, attr_changetype, vals);
d69b2b
+    slapi_entry_add_values(e, retrocl_changetype, vals);
d69b2b
 
d69b2b
     estr = slapi_entry2str(oe, &len;;
d69b2b
     p = estr;
d69b2b
@@ -435,7 +435,7 @@ entry2reple(Slapi_Entry *e, Slapi_Entry *oe, int optype)
d69b2b
     }
d69b2b
     val.bv_val = p;
d69b2b
     val.bv_len = len - (p - estr); /* length + terminating \0 */
d69b2b
-    slapi_entry_add_values(e, attr_changes, vals);
d69b2b
+    slapi_entry_add_values(e, retrocl_changes, vals);
d69b2b
     slapi_ch_free_string(&estr);
d69b2b
     return 0;
d69b2b
 }
d69b2b
@@ -471,7 +471,7 @@ mods2reple(Slapi_Entry *e, LDAPMod **ldm)
d69b2b
         if (NULL != l) {
d69b2b
             val.bv_val = l->ls_buf;
d69b2b
             val.bv_len = l->ls_len + 1; /* string + terminating \0 */
d69b2b
-            slapi_entry_add_values(e, attr_changes, vals);
d69b2b
+            slapi_entry_add_values(e, retrocl_changes, vals);
d69b2b
             lenstr_free(&l);
d69b2b
         }
d69b2b
     }
d69b2b
@@ -511,12 +511,12 @@ modrdn2reple(
d69b2b
 
d69b2b
     val.bv_val = "modrdn";
d69b2b
     val.bv_len = 6;
d69b2b
-    slapi_entry_add_values(e, attr_changetype, vals);
d69b2b
+    slapi_entry_add_values(e, retrocl_changetype, vals);
d69b2b
 
d69b2b
     if (newrdn) {
d69b2b
         val.bv_val = (char *)newrdn; /* cast away const */
d69b2b
         val.bv_len = strlen(newrdn);
d69b2b
-        slapi_entry_add_values(e, attr_newrdn, vals);
d69b2b
+        slapi_entry_add_values(e, retrocl_newrdn, vals);
d69b2b
     }
d69b2b
 
d69b2b
     if (deloldrdn == 0) {
d69b2b
@@ -526,12 +526,12 @@ modrdn2reple(
d69b2b
         val.bv_val = "TRUE";
d69b2b
         val.bv_len = 4;
d69b2b
     }
d69b2b
-    slapi_entry_add_values(e, attr_deleteoldrdn, vals);
d69b2b
+    slapi_entry_add_values(e, retrocl_deleteoldrdn, vals);
d69b2b
 
d69b2b
     if (newsuperior) {
d69b2b
         val.bv_val = (char *)newsuperior; /* cast away const */
d69b2b
         val.bv_len = strlen(newsuperior);
d69b2b
-        slapi_entry_add_values(e, attr_newsuperior, vals);
d69b2b
+        slapi_entry_add_values(e, retrocl_newsuperior, vals);
d69b2b
     }
d69b2b
 
d69b2b
     if (NULL != ldm) {
d69b2b
@@ -540,7 +540,7 @@ modrdn2reple(
d69b2b
             if (l->ls_len) {
d69b2b
                 val.bv_val = l->ls_buf;
d69b2b
                 val.bv_len = l->ls_len;
d69b2b
-                slapi_entry_add_values(e, attr_changes, vals);
d69b2b
+                slapi_entry_add_values(e, retrocl_changes, vals);
d69b2b
             }
d69b2b
             lenstr_free(&l);
d69b2b
         }
d69b2b
diff --git a/ldap/servers/plugins/retrocl/retrocl_trim.c b/ldap/servers/plugins/retrocl/retrocl_trim.c
d69b2b
index 0378eb7f6..d031dc3f8 100644
d69b2b
--- a/ldap/servers/plugins/retrocl/retrocl_trim.c
d69b2b
+++ b/ldap/servers/plugins/retrocl/retrocl_trim.c
d69b2b
@@ -49,15 +49,15 @@ static const char **
d69b2b
 get_cleattrs(void)
d69b2b
 {
d69b2b
     if (cleattrs[0] == NULL) {
d69b2b
-        cleattrs[0] = attr_objectclass;
d69b2b
-        cleattrs[1] = attr_changenumber;
d69b2b
-        cleattrs[2] = attr_targetdn;
d69b2b
-        cleattrs[3] = attr_changetype;
d69b2b
-        cleattrs[4] = attr_newrdn;
d69b2b
-        cleattrs[5] = attr_deleteoldrdn;
d69b2b
-        cleattrs[6] = attr_changes;
d69b2b
-        cleattrs[7] = attr_newsuperior;
d69b2b
-        cleattrs[8] = attr_changetime;
d69b2b
+        cleattrs[0] = retrocl_objectclass;
d69b2b
+        cleattrs[1] = retrocl_changenumber;
d69b2b
+        cleattrs[2] = retrocl_targetdn;
d69b2b
+        cleattrs[3] = retrocl_changetype;
d69b2b
+        cleattrs[4] = retrocl_newrdn;
d69b2b
+        cleattrs[5] = retrocl_deleteoldrdn;
d69b2b
+        cleattrs[6] = retrocl_changes;
d69b2b
+        cleattrs[7] = retrocl_newsuperior;
d69b2b
+        cleattrs[8] = retrocl_changetime;
d69b2b
         cleattrs[9] = NULL;
d69b2b
     }
d69b2b
     return cleattrs;
d69b2b
@@ -81,7 +81,7 @@ delete_changerecord(changeNumber cnum)
d69b2b
     char *dnbuf;
d69b2b
     int delrc;
d69b2b
 
d69b2b
-    dnbuf = slapi_ch_smprintf("%s=%ld, %s", attr_changenumber, cnum,
d69b2b
+    dnbuf = slapi_ch_smprintf("%s=%ld, %s", retrocl_changenumber, cnum,
d69b2b
                               RETROCL_CHANGELOG_DN);
d69b2b
     pb = slapi_pblock_new();
d69b2b
     slapi_delete_internal_set_pb(pb, dnbuf, NULL /*controls*/, NULL /* uniqueid */,
d69b2b
@@ -154,7 +154,7 @@ handle_getchangetime_search(Slapi_Entry *e, void *callback_data)
d69b2b
         if (NULL != e) {
d69b2b
             Slapi_Value *sval = NULL;
d69b2b
             const struct berval *val = NULL;
d69b2b
-            rc = slapi_entry_attr_find(e, attr_changetime, &attr);
d69b2b
+            rc = slapi_entry_attr_find(e, retrocl_changetime, &attr);
d69b2b
             /* Bug 624442: Logic checking for lack of timestamp was
d69b2b
                reversed. */
d69b2b
             if (0 != rc || slapi_attr_first_value(attr, &sval) == -1 ||
d69b2b
@@ -174,14 +174,14 @@ handle_getchangetime_search(Slapi_Entry *e, void *callback_data)
d69b2b
 /*
d69b2b
  * Function: get_changetime
d69b2b
  * Arguments: cnum - number of change record to retrieve
d69b2b
- * Returns: Taking the attr_changetime of the 'cnum' entry,
d69b2b
+ * Returns: Taking the retrocl_changetime of the 'cnum' entry,
d69b2b
  * it converts it into time_t (parse_localTime) and returns this time value.
d69b2b
  * It returns 0 in the following cases:
d69b2b
- *  - changerecord entry has not attr_changetime
d69b2b
+ *  - changerecord entry has not retrocl_changetime
d69b2b
  *  - attr_changetime attribute has no value
d69b2b
  *  - attr_changetime attribute value is empty
d69b2b
  *
d69b2b
- * Description: Retrieve attr_changetime ("changetime") from a changerecord whose number is "cnum".
d69b2b
+ * Description: Retrieve retrocl_changetime ("changetime") from a changerecord whose number is "cnum".
d69b2b
  */
d69b2b
 static time_t
d69b2b
 get_changetime(changeNumber cnum, int *err)
d69b2b
@@ -198,7 +198,7 @@ get_changetime(changeNumber cnum, int *err)
d69b2b
     }
d69b2b
     crtp->crt_nentries = crtp->crt_err = 0;
d69b2b
     crtp->crt_time = 0;
d69b2b
-    PR_snprintf(fstr, sizeof(fstr), "%s=%ld", attr_changenumber, cnum);
d69b2b
+    PR_snprintf(fstr, sizeof(fstr), "%s=%ld", retrocl_changenumber, cnum);
d69b2b
 
d69b2b
     pb = slapi_pblock_new();
d69b2b
     slapi_search_internal_set_pb(pb, RETROCL_CHANGELOG_DN,
d69b2b
-- 
d69b2b
2.26.2
d69b2b