[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: [BUG FIXES] backend-bdb with subdirs segfault (ITS#2371)

I have committed a fix to CVS HEAD. Note that it is unnecessary to compile
the BDB_SUBDIRS code though; you can control the subdirectory behavior just
by using a DB_CONFIG file in your database home directory, and this is the
preferred mechanism for configuring these types of options. See the SleepyCat
documentation for more info. (set_lg_dir, set_data_dir, set_tmp_dir keywords)

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-bugs@OpenLDAP.org
> [mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of
> luc.openldap@saillard.org
> Sent: Thursday, March 13, 2003 5:33 AM
> To: openldap-its@OpenLDAP.org
> Subject: [BUG FIXES] backend-bdb with subdirs segfault (ITS#2371)
> Full_Name: Luc Saillard
> Version: 2.1.15
> OS: Linux
> URL:
> http://luc.saillard.free.fr/patches/openldap/openldap-subdirs_
> bdb.patch
> Submission from: (NULL) (
> I want to use subdirs when using the bdb backend to split
> logfiles accross
> volumes. so i define the BDB_SUBDIRS in
> openldap-2.1.15/servers/slapd/back-bdb/back-bdb.h.
> 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.