From f3ee4f5d3049e3c1c1ac7d87aafc918962115150 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 27 Apr 2006 23:21:39 +0000 Subject: [PATCH] Fix rev 1.52, frontendDB uses index {-1}. --- servers/slapd/back-ldif/ldif.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/servers/slapd/back-ldif/ldif.c b/servers/slapd/back-ldif/ldif.c index 57898f8b9d..0dbb540dae 100644 --- a/servers/slapd/back-ldif/ldif.c +++ b/servers/slapd/back-ldif/ldif.c @@ -420,9 +420,7 @@ static int r_enum_tree(enumCookie *ck, struct berval *path, if ( ptr ) { itmp.bv_len = ptr - itmp.bv_val; ber_dupbv( &bvl->num, &itmp ); - /* FIXME: handle error? */ - assert( itmp.bv_val[ 0 ] != '-' ); - bvl->inum = strtoul( itmp.bv_val, NULL, 0 ); + bvl->inum = strtol( itmp.bv_val, NULL, 0 ); itmp.bv_val[0] = '\0'; bvl->off = itmp.bv_val - bvl->bv.bv_val; } -- 2.39.5