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