slap_entry2mods(
Entry *e,
Modifications **mods,
- const char **text
+ const char **text,
+ char *textbuf, size_t textlen )
)
{
Modifications *modhead = NULL;
Modifications **modtail = &modhead;
Attribute *a_new;
AttributeDescription *a_new_desc;
- int i, count, rc;
+ int i, count;
+
+ *text = textbuf;
a_new = e->e_attrs;
BerVarray value_array;
Attribute *uuid_attr, *attr;
Entry *e;
+ char textbuf[SLAP_TEXT_BUFLEN];
+ size_t textlen = sizeof(textbuf);
SlapReply sreply = {REP_RESULT};
if ( rc != LDAP_SUCCESS ) {
if ( rc == LDAP_ALREADY_EXISTS ) {
- slap_entry2mods( e, &modlist, &text );
+ slap_entry2mods( e, &modlist, &text, textbuf, textlen );
op_tmp.o_tag = LDAP_REQ_MODIFY;
op_tmp.orm_modlist = modlist;
op_tmp.o_req_dn = e->e_name;
int repl_user, int dup, const char **text, char *textbuf, size_t textlen ));
LDAP_SLAPD_F (int) slap_entry2mods LDAP_P(( Entry *e,
- Modifications **mods, const char **text ));
+ Modifications **mods, const char **text,
+ char *textbuf, size_t textlen ));
/*
* at.c
return -1;
}
-int slap_entry2mods( Entry *e, Modifications **mods, const char **text )
+int slap_entry2mods( Entry *e, Modifications **mods, const char **text,
+ char *textbuf, size_t textlen )
{
return -1;
}