autofs-5.1.3 - fix nisplus lookup init not configured check From: Ian Kent If nisplus is not configured nis_local_directory() can return the domain name "(none).". Signed-off-by: Ian Kent --- CHANGELOG | 1 + modules/lookup_nisplus.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index c2145c8f..630bdd56 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -28,6 +28,7 @@ xx/xx/2017 autofs-5.1.4 - only take master map mutex for master map update. - revert fix argc off by one in mount_autofs.c. - reset master map list on startup retry. +- fix nisplus lookup init not configured check. 24/05/2017 autofs-5.1.3 ======================= diff --git a/modules/lookup_nisplus.c b/modules/lookup_nisplus.c index 6430b890..5e80bfe1 100644 --- a/modules/lookup_nisplus.c +++ b/modules/lookup_nisplus.c @@ -48,7 +48,7 @@ static int do_init(const char *mapfmt, * We don't need to copy or free it. */ ctxt->domainname = nis_local_directory(); - if (!ctxt->domainname) { + if (!ctxt->domainname || !strcmp(ctxt->domainname, "(none).")) { logmsg(MODPREFIX "NIS+ domain not set"); ret = 1; goto out;