mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-09 22:04:12 -05:00
fix back-ldif delete (ITS#5265)
This commit is contained in:
parent
8deeb8fcbb
commit
4d53c886a8
1 changed files with 4 additions and 2 deletions
|
|
@ -1023,15 +1023,17 @@ static int ldif_back_delete(Operation *op, SlapReply *rs) {
|
|||
break;
|
||||
|
||||
case ENOENT:
|
||||
rs->sr_err = LDAP_NO_SUCH_OBJECT;
|
||||
/* is leaf, go on */
|
||||
res = 0;
|
||||
break;
|
||||
|
||||
default:
|
||||
rs->sr_err = LDAP_UNWILLING_TO_PERFORM;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
if ( !res ) {
|
||||
res = unlink(path.bv_val);
|
||||
if ( res == -1 ) {
|
||||
switch ( errno ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue