mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-06 15:00:40 +08:00
s/PATH_MAX/MAXPATHLEN/ (ITS#5531)
This commit is contained in:
parent
c8fcb58fbb
commit
88bc524422
@ -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;
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user