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