From f5b5e605158ca5cd33d0b4dab42d303afa774dfd Mon Sep 17 00:00:00 2001
From: Danny Auble <da@schedmd.com>
Date: Mon, 14 Mar 2016 10:52:04 -0700
Subject: [PATCH] Change NoInAddrAnyCtld to NoCtldInAddrAny so as to not have
 it also resolve NoInAddrAny when doing a strstr.  Continuation of commit
 775c46de.

---
 doc/man/man5/slurm.conf.5       | 2 +-
 src/common/slurm_protocol_api.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/man/man5/slurm.conf.5 b/doc/man/man5/slurm.conf.5
index b31628e3746..1c9c7ef7360 100644
--- a/doc/man/man5/slurm.conf.5
+++ b/doc/man/man5/slurm.conf.5
@@ -3419,7 +3419,7 @@ The value of "NoInAddrAny" is used to directly bind to the address of what
 the node resolves to instead of binding messages to any address on the node
 which is the default. This option is for all daemons/clients except for the
 slurmctld.
-The value of "NoInAddrAnyCtld" is used to directly bind to the address of what
+The value of "NoCtldInAddrAny" is used to directly bind to the address of what
 the node resolves to running the slurmctld instead of binding messages to any
 address on the node, which is the default.
 
diff --git a/src/common/slurm_protocol_api.c b/src/common/slurm_protocol_api.c
index 7e23642f06c..bd1e3d19bfa 100644
--- a/src/common/slurm_protocol_api.c
+++ b/src/common/slurm_protocol_api.c
@@ -4594,7 +4594,7 @@ extern void slurm_setup_sockaddr(struct sockaddr_in *sin, uint16_t port)
 		char *var;
 
 		if (run_in_daemon("slurmctld"))
-			var = "NoInAddrAnyCtld";
+			var = "NoCtldInAddrAny";
 		else
 			var = "NoInAddrAny";
 
-- 
GitLab