Skip to contentSkip to conversation

exportfs: Restore the EAI_NONAME check in host_pton()

PATCH In review Scott Mayhew 2 participants 2 messages Oct 28, 2015 – Nov 4, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 exportfs: Restore the EAI_NONAME check in host_pton()

Commit d89e3fc7 removed the EAI_NONAME check altogether instead of just moving the NULL check. This causes exportfs -u to incorrectly exit with 1 whenever there's more than one MCL_FQDN export in the exportlist.

---
 support/export/hostname.c | 2 ++
 1 file changed, 2 insertions(+)
support/export/hostname.c +2 -0
index 169baa5..7a44d42 100644
@@ -134,6 +134,8 @@ host_pton(const char *paddr)
 			break;
 		}
 		return ai;
+	case EAI_NONAME:
+		break;
 	case EAI_SYSTEM:
 		xlog(D_GENERAL, "%s: failed to convert %s: (%d) %m",
 				__func__, paddr, errno);
Signature · 1 line
2.4.3
#1 lore raw
Quoted 5 lines · Scott Mayhew

Commit d89e3fc7 removed the EAI_NONAME check altogether instead of just moving the NULL check. This causes exportfs -u to incorrectly exit with 1 whenever there's more than one MCL_FQDN export in the exportlist.

Committed...

steved.

Quoted 18 lines
---
 support/export/hostname.c | 2 ++
 1 file changed, 2 insertions(+)
support/export/hostname.c +2 -0
index 169baa5..7a44d42 100644
@@ -134,6 +134,8 @@ host_pton(const char *paddr)
 			break;
 		}
 		return ai;
+	case EAI_NONAME:
+		break;
 	case EAI_SYSTEM:
 		xlog(D_GENERAL, "%s: failed to convert %s: (%d) %m",
 				__func__, paddr, errno);