nss-pam-ldapd commit: r1390 - nss-pam-ldapd/nslcd
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1390 - nss-pam-ldapd/nslcd
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd commit: r1390 - nss-pam-ldapd/nslcd
- Date: Sat, 12 Mar 2011 09:34:54 +0100 (CET)
Author: arthur
Date: Sat Mar 12 09:34:52 2011
New Revision: 1390
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1390
Log:
put all HOST_NAME_MAX fallbacks in common.h and fall back to
_POSIX_HOST_NAME_MAX (thanks Peter Bray)
Modified:
nss-pam-ldapd/nslcd/common.h
nss-pam-ldapd/nslcd/pam.c
Modified: nss-pam-ldapd/nslcd/common.h
==============================================================================
--- nss-pam-ldapd/nslcd/common.h Fri Mar 11 21:37:46 2011 (r1389)
+++ nss-pam-ldapd/nslcd/common.h Sat Mar 12 09:34:52 2011 (r1390)
@@ -105,7 +105,11 @@
/* fallback definition of HOST_NAME_MAX */
#ifndef HOST_NAME_MAX
+#ifdef _POSIX_HOST_NAME_MAX
+#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
+#else
#define HOST_NAME_MAX 255
+#endif /* _POSIX_HOST_NAME_MAX */
#endif /* not HOST_NAME_MAX */
/* these are the functions for initialising the database specific
Modified: nss-pam-ldapd/nslcd/pam.c
==============================================================================
--- nss-pam-ldapd/nslcd/pam.c Fri Mar 11 21:37:46 2011 (r1389)
+++ nss-pam-ldapd/nslcd/pam.c Sat Mar 12 09:34:52 2011 (r1390)
@@ -38,10 +38,6 @@
#include "common/dict.h"
#include "common/expr.h"
-#ifndef HOST_NAME_MAX
-#define HOST_NAME_MAX 255
-#endif /* not HOST_NAME_MAX */
-
/* set up a connection and try to bind with the specified DN and password,
returns an LDAP result code */
static int try_bind(const char *userdn,const char *password)
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits
- nss-pam-ldapd commit: r1390 - nss-pam-ldapd/nslcd,
Commits of the nss-pam-ldapd project