[Pkg-openldap-devel] Bug#475744: openldap2.3: FTBFS on hurd-i386 because of PATH_MAX

Samuel Thibault samuel.thibault at ens-lyon.org
Sat Apr 12 16:45:10 UTC 2008


Package: openldap2.3
Version: 2.4.7-6.1
Severity: important
Tags: patch

Hello,

openldap2.3 currently FTBFS on hurd-i386 because of unconditional use
of the optional PATH_MAX macro.  The attached patch fixes this by using
MAXPATHLEN, defined more portably in include/ac/param.h

Samuel

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24.1
Locale: LANG=fr_FR at euro, LC_CTYPE=fr_FR at euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

-- 
Samuel
<T> csp.tar.gz:     ascii text
 -+- #ens-mim - vive les browsers qui prennent des initiatives à la con -+-
-------------- next part --------------
--- ./servers/slapd/back-bdb/monitor.c.orig	2008-04-12 11:08:22.540562000 -0400
+++ ./servers/slapd/back-bdb/monitor.c	2008-04-12 11:08:18.580562000 -0400
@@ -395,7 +395,7 @@
 	{
 		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;
 


More information about the Pkg-openldap-devel mailing list