From b90a49618713f20160fc3467915448ecc2cfb4c4 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 14 Oct 2005 10:02:50 +0000 Subject: [PATCH] fix previous commit (modifyTimestamp didn't get appended to the list); add opattrs to back-monitor mods --- servers/slapd/back-monitor/modify.c | 3 +++ servers/slapd/modify.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/servers/slapd/back-monitor/modify.c b/servers/slapd/back-monitor/modify.c index eafeb6e063..728975360c 100644 --- a/servers/slapd/back-monitor/modify.c +++ b/servers/slapd/back-monitor/modify.c @@ -69,6 +69,9 @@ monitor_back_modify( Operation *op, SlapReply *rs ) rc = LDAP_INSUFFICIENT_ACCESS; } else { + assert( !SLAP_SHADOW( op->o_bd ) ); + slap_mods_opattrs( op, op->orm_modlist, 0 ); + rc = monitor_entry_modify( op, rs, e ); } diff --git a/servers/slapd/modify.c b/servers/slapd/modify.c index b07c6c38c9..5e45e20fbd 100644 --- a/servers/slapd/modify.c +++ b/servers/slapd/modify.c @@ -920,6 +920,8 @@ void slap_mods_opattrs( BER_BVZERO( &mod->sml_values[1] ); assert( !BER_BVISNULL( &mod->sml_values[0] ) ); mod->sml_nvalues = NULL; + *modtail = mod; + modtail = &mod->sml_next; } } } -- 2.39.5