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

(ITS#3662) Little error in /servers/slapd/config.h



Full_Name: Reinhard E. Voglmaier
Version: 2.3.2beta
OS: Sun Solaris 2.9
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (82.193.9.10)


This is a little error happening on systems which do not have defined PATH_MAX.
file ./include/ac/params.h defines MAXPATHLEN, if PATH_MAX exists, it is used,
then it tries out _MAX_PATH at the end it defines it by itself.
#if defined(PATH_MAX)
    define MAXPATHLEN PATH_MAX

file /servers/slapd/config.h instead uses PATH_MAX directly in line 109
char log[PATH_MAX + STRLENOF("    .......
this should be instead
char log[MAXPATHLEN + STRLENOF("    .......

is this correct ?
cheers
Reinhard