Blame SOURCES/01-Fix-sbd-inquisitor-Correctly-look-up-servant-by-devi.patch

f46b0e
From bd4e73b0da7d5567f7d0d3639a1b72af8190f022 Mon Sep 17 00:00:00 2001
f46b0e
From: "Gao,Yan" <ygao@suse.com>
f46b0e
Date: Thu, 1 Jun 2017 13:42:36 +0200
f46b0e
Subject: [PATCH] Fix: sbd-inquisitor: Correctly look up servant by device name
f46b0e
f46b0e
---
f46b0e
 src/sbd-inquisitor.c | 2 +-
f46b0e
 1 file changed, 1 insertion(+), 1 deletion(-)
f46b0e
f46b0e
diff --git a/src/sbd-inquisitor.c b/src/sbd-inquisitor.c
f46b0e
index 30be8b2..cd7d914 100644
f46b0e
--- a/src/sbd-inquisitor.c
f46b0e
+++ b/src/sbd-inquisitor.c
f46b0e
@@ -104,7 +104,7 @@ struct servants_list_item *lookup_servant_by_dev(const char *devname)
f46b0e
 	struct servants_list_item *s;
f46b0e
 
f46b0e
 	for (s = servants_leader; s; s = s->next) {
f46b0e
-		if (strncasecmp(s->devname, devname, strlen(s->devname)))
f46b0e
+		if (strcasecmp(s->devname, devname) == 0)
f46b0e
 			break;
f46b0e
 	}
f46b0e
 	return s;
f46b0e
-- 
f46b0e
1.8.3.1
f46b0e