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

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