Blame SOURCES/0001-mi-When-en-dis-abling-extensions-match-names-case-in.patch
|
|
a6e7ea |
From 2710e0997b69326ff7103229508e43b511903278 Mon Sep 17 00:00:00 2001
|
|
|
a6e7ea |
From: Adam Jackson <ajax@redhat.com>
|
|
|
a6e7ea |
Date: Thu, 29 Oct 2020 15:32:36 -0400
|
|
|
a6e7ea |
Subject: [PATCH] mi: When {en,dis}abling extensions, match names
|
|
|
a6e7ea |
case-insensitively
|
|
|
a6e7ea |
|
|
|
a6e7ea |
Both because extension names are inconsistently capitalized on the wire,
|
|
|
a6e7ea |
and because the table we're walking spells it COMPOSITE not Composite.
|
|
|
a6e7ea |
The latter is certainly also a bug, but there's no reason for us to be
|
|
|
a6e7ea |
that strict.
|
|
|
a6e7ea |
|
|
|
a6e7ea |
[mustard: backport to 1.20.4 - ajax]
|
|
|
a6e7ea |
|
|
|
a6e7ea |
Signed-off-by: Adam Jackson <ajax@redhat.com>
|
|
|
a6e7ea |
---
|
|
|
a6e7ea |
mi/miinitext.c | 2 +-
|
|
|
a6e7ea |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
a6e7ea |
|
|
|
a6e7ea |
diff --git a/mi/miinitext.c b/mi/miinitext.c
|
|
|
a6e7ea |
index b7c7021..3a7f83f 100644
|
|
|
a6e7ea |
--- a/mi/miinitext.c
|
|
|
a6e7ea |
+++ b/mi/miinitext.c
|
|
|
a6e7ea |
@@ -215,7 +215,7 @@ EnableDisableExtensionError(const char *name, Bool enable)
|
|
|
a6e7ea |
|
|
|
a6e7ea |
for (i = 0; i < ARRAY_SIZE(staticExtensions); i++) {
|
|
|
a6e7ea |
ext = &staticExtensions[i];
|
|
|
a6e7ea |
- if ((strcmp(name, ext->name) == 0) && (ext->disablePtr == NULL)) {
|
|
|
a6e7ea |
+ if ((strcasecmp(name, ext->name) == 0) && (ext->disablePtr == NULL)) {
|
|
|
a6e7ea |
ErrorF("[mi] Extension \"%s\" can not be disabled\n", name);
|
|
|
a6e7ea |
found = TRUE;
|
|
|
a6e7ea |
break;
|
|
|
a6e7ea |
--
|
|
|
a6e7ea |
2.23.0
|
|
|
a6e7ea |
|