Blame SOURCES/autofs-5.1.3-be-silent-about-sss-library-not-found.patch

306fa1
autofs-5.1.3 - be silent about sss library not found
306fa1
306fa1
From: Ian Kent <raven@themaw.net>
306fa1
306fa1
When sss is set as an nsswitch source but the sss autofs shared library
306fa1
isn't found then sssd is probably not installed so it's essentially an
306fa1
unconfigured source.
306fa1
306fa1
So be silent about the library not being found.
306fa1
306fa1
Signed-off-by: Ian Kent <raven@themaw.net>
306fa1
---
306fa1
 CHANGELOG            |    1 +
306fa1
 modules/lookup_sss.c |    4 +---
306fa1
 2 files changed, 2 insertions(+), 3 deletions(-)
306fa1
306fa1
--- autofs-5.0.7.orig/CHANGELOG
306fa1
+++ autofs-5.0.7/CHANGELOG
306fa1
@@ -260,6 +260,7 @@
306fa1
 - only take master map mutex for master map update.
306fa1
 - fix nisplus lookup init not configured check.
306fa1
 - make open_lookup() error handling more consistent.
306fa1
+- be silent about sss library not found.
306fa1
 
306fa1
 25/07/2012 autofs-5.0.7
306fa1
 =======================
306fa1
--- autofs-5.0.7.orig/modules/lookup_sss.c
306fa1
+++ autofs-5.0.7/modules/lookup_sss.c
306fa1
@@ -74,10 +74,8 @@ static int open_sss_lib(struct lookup_co
306fa1
 	}
306fa1
 
306fa1
 	dh = dlopen(dlbuf, RTLD_LAZY);
306fa1
-	if (!dh) {
306fa1
-		logerr(MODPREFIX "failed to open %s: %s", dlbuf, dlerror());
306fa1
+	if (!dh)
306fa1
 		return 1;
306fa1
-	}
306fa1
 	ctxt->dlhandle = dh;
306fa1
 
306fa1
 	ctxt->setautomntent = (setautomntent_t) dlsym(dh, "_sss_setautomntent");