diff mbox

[2/5] nfs-utils: Fix comparison check for subsection headers

Message ID 1529496736.7473.10.camel@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Justin Mitchell June 20, 2018, 12:12 p.m. UTC
When comparing two config section headers it incorrectly
handled matching section names where only one had a
subsection value

Signed-off-by: Justin Mitchell <jumitche@redhat.com>
---
 support/nfs/conffile.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/support/nfs/conffile.c b/support/nfs/conffile.c
index d20460e..51b85f2 100644
--- a/support/nfs/conffile.c
+++ b/support/nfs/conffile.c
@@ -727,6 +727,8 @@  retry:
 			continue;
 		if (arg && (cb->arg == NULL || strcasecmp(arg, cb->arg) != 0))
 			continue;
+		if (!arg && cb->arg)
+			continue;
 		if (strcasecmp(tag, cb->tag) != 0)
 			continue;
 		if (cb->value[0] == '$') {