s/PATH_MAX/MAXPATHLEN/ (ITS#5531)

This commit is contained in:
Pierangelo Masarati 2008-05-26 20:53:16 +00:00
parent c8fcb58fbb
commit 88bc524422
2 changed files with 1 additions and 9 deletions

View File

@ -395,7 +395,7 @@ bdb_monitor_db_open( BackendDB *be )
{
struct berval bv, nbv;
ber_len_t pathlen = 0, len = 0;
char path[ PATH_MAX ] = { '\0' };
char path[ MAXPATHLEN ] = { '\0' };
char *fname = bdb->bi_dbenv_home,
*ptr;

View File

@ -33,14 +33,6 @@
static int monitor_back_add_plugin( monitor_info_t *mi, Backend *be, Entry *e );
#endif /* defined(LDAP_SLAPI) */
/* for PATH_MAX on some systems (e.g. Solaris) */
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif /* HAVE_LIMITS_H */
#ifndef PATH_MAX
#define PATH_MAX 4095
#endif /* ! PATH_MAX */
static int
monitor_subsys_database_modify(
Operation *op,