]> git.sur5r.net Git - openldap/commitdiff
s/PATH_MAX/MAXPATHLEN/ (ITS#5531)
authorPierangelo Masarati <ando@openldap.org>
Mon, 26 May 2008 20:53:16 +0000 (20:53 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 26 May 2008 20:53:16 +0000 (20:53 +0000)
servers/slapd/back-bdb/monitor.c
servers/slapd/back-monitor/database.c

index ebc8c7db2846ba28ecafb1599ba1468562fe69dd..7421cb1cd4b9e34c1537243cfa1d6f726a330197 100644 (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;
 
index bc9858ab9b2891f15aebc92305138c118f00f98b..ec98abc7bc910a309d1eb4de972f3f3a67a522d3 100644 (file)
 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,