IDs in the LDIF input were not being used in id2children creation.

This commit is contained in:
Julio Sánchez Fernández 1999-07-30 18:37:00 +00:00
parent 8f267f7f71
commit 3a1aab088d
2 changed files with 10 additions and 2 deletions

View file

@ -240,7 +240,11 @@ main( int argc, char **argv )
}
if ( line[0] == '\n' || stop && buf && *buf ) {
if ( * buf != '\n' ) {
id++;
if (isdigit((unsigned char) *buf)) {
id = atol(buf);
} else {
id++;
}
s = buf;
while ( (linep = ldif_getline( &s )) != NULL ) {
if ( ldif_parse_line( linep, &type, &val,

View file

@ -242,7 +242,11 @@ main( int argc, char **argv )
}
if ( line[0] == '\n' || stop && buf && *buf ) {
if ( * buf != '\n' ) {
id++;
if (isdigit((unsigned char) *buf)) {
id = atol(buf);
} else {
id++;
}
s = buf;
while ( (linep = ldif_getline( &s )) != NULL ) {
if ( ldif_parse_line( linep, &type, &val,