From 1b1a0ebf18fece3e82ee908870dfdcead780fe2d Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 2 Nov 2006 19:26:04 +0000 Subject: [PATCH] Tweak prev commit: Preserve delete/replace indication from original request --- servers/slapd/overlays/accesslog.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index a98d11bf6d..b57c197cf7 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -1081,7 +1081,10 @@ static int accesslog_response(Operation *op, SlapReply *rs) { ptr = lutil_strcopy( vals[i].bv_val, m->sml_desc->ad_cname.bv_val ); *ptr++ = ':'; - *ptr++ = '-'; + if ( m->sml_op == LDAP_MOD_DELETE ) + *ptr++ = '-'; + else + *ptr++ = '='; *ptr = '\0'; i++; } -- 2.39.5