#include <stdio.h>
+#include <ac/string.h>
+
#include "slap.h"
#include "rwm.h"
(struct ldaprwmap *)on->on_bi.bi_private;
Entry *e = NULL;
+ int flags;
struct berval dn = BER_BVNULL,
ndn = BER_BVNULL;
dncookie dc;
dc.normalized = 0;
#endif
+ flags = rs->sr_flags;
+
if ( !( rs->sr_flags & REP_ENTRY_MODIFIABLE ) ) {
/* FIXME: all we need to duplicate are:
* - dn
goto fail;
}
- rs->sr_flags |= ( REP_ENTRY_MODIFIABLE | REP_ENTRY_MUSTBEFREED );
+ flags |= ( REP_ENTRY_MODIFIABLE | REP_ENTRY_MUSTBEFREED );
}
/*
rs->sr_entry = e;
+ rs->sr_flags = flags;
return SLAP_CB_CONTINUE;