I've attached a patch for fixing two issues with courier-authlib:
(1) The configure script generates conftest2.out in the current working
directory and tries to source the contents into the running /bin/sh with
". ./conftest.out". However, this fails if the user running the
configure script does not have "." in the PATH. The patch changes these
lines to be ". ./conftest2.out", which avoids this problem.
(2) authldaplib.c declares a variable within a scope instead of at the
top of the scope, which causes problems with older compilers that don't
support C99 syntax. The patch just moves the declaration to the head of
the scope.
Cheers,
-- Johnny C. Lam
$NetBSD$
--- configure.in.orig Sun Oct 14 00:19:54 2007
+++ configure.in
@@ -914,7 +914,7 @@ if test -x "$COURIERCONFIG"
then
$COURIERCONFIG >conftest.out || exit 1
sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
- . conftest2.out
+ . ./conftest2.out
rm -f conftest.out conftest2.out
cmailuser="$mailuser"
@@ -926,7 +926,7 @@ if test -x "$bindir/courierauthconfig"
then
$bindir/courierauthconfig --configfiles >conftest.out || exit 1
sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
- . conftest2.out
+ . ./conftest2.out
rm -f conftest.out conftest2.out
cmailuser="$mailuser"
$NetBSD$
--- authldaplib.c.orig Sat Jan 20 17:03:22 2007
+++ authldaplib.c
@@ -126,7 +126,7 @@ authldap_free_config removed - no longer
static char **l_get_values(LDAP *ld, LDAPMessage *entry, const char *attribut)
{
struct berval **p=ldap_get_values_len(ld, entry, attribut);
- int n;
+ int i, n;
char **a;
if (!p)
@@ -143,8 +143,6 @@ static char **l_get_values(LDAP *ld, LDA
ldap_value_free_len(p);
return NULL;
}
-
- int i;
for (i=0; i<n; i++)
{
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users