[Date Prev][Date Next]
[BUG FIXES] backend-bdb with subdirs segfault (ITS#2371)
Full_Name: Luc Saillard
Submission from: (NULL) (126.96.36.199)
I want to use subdirs when using the bdb backend to split logfiles accross
volumes. so i define the BDB_SUBDIRS in
But it crash just after a compile and test.
The main problem is when we append the directoryname after the basedir. We need
to use strcopy and not strcat. Perhaps we need to use strncpy too ?
- strcat( &dir[len], BDB_LG_SUBDIR );
+ strcpy( &dir[len], BDB_LG_SUBDIR );
I've defined BDB_SUBDIRS to 1 by default, feel free to change it. When
installing openldap, i create the 3 directories but not for make test.
This patches is against the last stable openldap 2.1.15.