mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
Truncate \r if it appears at end of DB_CONFIG lines
This commit is contained in:
parent
c808575c12
commit
f9917a9c16
1 changed files with 5 additions and 0 deletions
|
|
@ -393,6 +393,11 @@ bdb_db_open( BackendDB *be )
|
|||
bv.bv_len--;
|
||||
bv.bv_val[bv.bv_len] = '\0';
|
||||
}
|
||||
/* shouldn't need this, but ... */
|
||||
if ( bv.bv_val[bv.bv_len-1] == '\r' ) {
|
||||
bv.bv_len--;
|
||||
bv.bv_val[bv.bv_len] = '\0';
|
||||
}
|
||||
ber_bvarray_add( &bdb->bi_db_config, &bv );
|
||||
}
|
||||
fclose( f );
|
||||
|
|
|
|||
Loading…
Reference in a new issue