From 07b7491249f2d7219103138be123c40b3896b8c5 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 8 Sep 2009 04:40:24 +0000 Subject: [PATCH] fix LDIF comment when modifying (ITS#6286) --- servers/slapd/overlays/auditlog.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/servers/slapd/overlays/auditlog.c b/servers/slapd/overlays/auditlog.c index c7d7b5e228..77d05b3721 100644 --- a/servers/slapd/overlays/auditlog.c +++ b/servers/slapd/overlays/auditlog.c @@ -73,7 +73,7 @@ static int auditlog_response(Operation *op, SlapReply *rs) { Attribute *a; Modifications *m; struct berval *b, *who = NULL; - char *what, *suffix; + char *what, *whatm, *suffix; time_t stamp; int i; @@ -147,15 +147,15 @@ static int auditlog_response(Operation *op, SlapReply *rs) { case LDAP_REQ_MODIFY: for(m = op->orm_modlist; m; m = m->sml_next) { switch(m->sml_op & LDAP_MOD_OP) { - case LDAP_MOD_ADD: what = "add"; break; - case LDAP_MOD_REPLACE: what = "replace"; break; - case LDAP_MOD_DELETE: what = "delete"; break; - case LDAP_MOD_INCREMENT: what = "increment"; break; + case LDAP_MOD_ADD: whatm = "add"; break; + case LDAP_MOD_REPLACE: whatm = "replace"; break; + case LDAP_MOD_DELETE: whatm = "delete"; break; + case LDAP_MOD_INCREMENT: whatm = "increment"; break; default: fprintf(f, "# MOD_TYPE_UNKNOWN:%02x\n", m->sml_op & LDAP_MOD_OP); continue; } - fprintf(f, "%s: %s\n", what, m->sml_desc->ad_cname.bv_val); + fprintf(f, "%s: %s\n", whatm, m->sml_desc->ad_cname.bv_val); if((b = m->sml_values) != NULL) for(i = 0; b[i].bv_val; i++) fprint_ldif(f, m->sml_desc->ad_cname.bv_val, b[i].bv_val, b[i].bv_len); -- 2.39.5