rpms/autofs/devel autofs-5.0.0_beta6-auth-config-exits.patch, NONE, 1.1
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Tue Jul 4 02:36:27 UTC 2006
Author: ikent
Update of /cvs/dist/rpms/autofs/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv25635
Added Files:
autofs-5.0.0_beta6-auth-config-exits.patch
Log Message:
- add patch refered to in last commit (oops).
autofs-5.0.0_beta6-auth-config-exits.patch:
CHANGELOG | 2 ++
modules/lookup_ldap.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
--- NEW FILE autofs-5.0.0_beta6-auth-config-exits.patch ---
diff --git a/CHANGELOG b/CHANGELOG
index 58c8bbc..5139d78 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -3,7 +3,8 @@
- merge LDAP authentication update for GSSAPI (Jeff Moyer).
- update default auth config to add options documenetation (Jeff Moyer).
- workaround segfaults at exit after using GSSAPI library.
-- fix not checking return in init_ldap_connection (jeff Moyer).
+- fix not checking return in init_ldap_connection (Jeff Moyer).
+- correct test for existence of auth config file.
29/6/2006 autofs-5.0.0_beta6
----------------------------
diff --git a/modules/lookup_ldap.c b/modules/lookup_ldap.c
index 003b836..effa038 100644
--- a/modules/lookup_ldap.c
+++ b/modules/lookup_ldap.c
@@ -285,7 +285,7 @@ int parse_ldap_config(struct lookup_cont
memset(&st, 0, sizeof(st));
if (stat(auth_conf, &st) == -1 || st.st_size == 0) {
/* Auth config doesn't exist so disable TLS and auth */
- if (errno == EEXIST) {
+ if (errno == ENOENT) {
ctxt->auth_conf = auth_conf;
ctxt->use_tls = LDAP_TLS_DONT_USE;
ctxt->tls_required = LDAP_TLS_DONT_USE;
More information about the fedora-cvs-commits
mailing list