mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-22 14:53:33 -05:00
IDs in the LDIF input were not being used in id2children creation.
This commit is contained in:
parent
8f267f7f71
commit
3a1aab088d
2 changed files with 10 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue