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

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