Blame SOURCES/autofs-5.1.3-be-silent-about-nis-domain-not-set.patch

cef8f8
autofs-5.1.3 - be silent about nis domain not set
cef8f8
cef8f8
From: Ian Kent <raven@themaw.net>
cef8f8
cef8f8
When initializing the lookup module for NIS or NISPLUS if the domain
cef8f8
is found to be not set then the service is not configured.
cef8f8
cef8f8
So be silent about the failure.
cef8f8
cef8f8
Signed-off-by: Ian Kent <raven@themaw.net>
cef8f8
---
cef8f8
 CHANGELOG                |    1 +
cef8f8
 modules/lookup_nisplus.c |    1 -
cef8f8
 modules/lookup_yp.c      |    2 --
cef8f8
 3 files changed, 1 insertion(+), 3 deletions(-)
cef8f8
cef8f8
--- autofs-5.0.7.orig/CHANGELOG
cef8f8
+++ autofs-5.0.7/CHANGELOG
cef8f8
@@ -261,6 +261,7 @@
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
+- be silent about nis domain not set.
cef8f8
 
cef8f8
 25/07/2012 autofs-5.0.7
cef8f8
 =======================
cef8f8
--- autofs-5.0.7.orig/modules/lookup_nisplus.c
cef8f8
+++ autofs-5.0.7/modules/lookup_nisplus.c
cef8f8
@@ -49,7 +49,6 @@ static int do_init(const char *mapfmt,
cef8f8
 	 */
cef8f8
 	ctxt->domainname = nis_local_directory();
cef8f8
 	if (!ctxt->domainname || !strcmp(ctxt->domainname, "(none).")) {
cef8f8
-		logmsg(MODPREFIX "NIS+ domain not set");
cef8f8
 		ret = 1;
cef8f8
 		goto out;
cef8f8
 	}
cef8f8
--- autofs-5.0.7.orig/modules/lookup_yp.c
cef8f8
+++ autofs-5.0.7/modules/lookup_yp.c
cef8f8
@@ -127,8 +127,6 @@ static int do_init(const char *mapfmt,
cef8f8
 		/* This should, but doesn't, take a const char ** */
cef8f8
 		err = yp_get_default_domain(&domainname);
cef8f8
 		if (err) {
cef8f8
-			logerr(MODPREFIX
cef8f8
-			      "map %s: %s", ctxt->mapname, yperr_string(err));
cef8f8
 			ret = 1;
cef8f8
 			goto out;
cef8f8
 		}