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

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