From: Pierangelo Masarati Date: Tue, 11 Dec 2007 15:12:48 +0000 (+0000) Subject: fix back-ldif delete (ITS#5265) X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~328 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4d53c886a856f133d20891915b4afc42b6b9e436;p=openldap fix back-ldif delete (ITS#5265) --- diff --git a/servers/slapd/back-ldif/ldif.c b/servers/slapd/back-ldif/ldif.c index 76427a99c5..21da29b4be 100644 --- a/servers/slapd/back-ldif/ldif.c +++ b/servers/slapd/back-ldif/ldif.c @@ -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 ) {