diff options
author | Adam Jackson <ajax@redhat.com> | 2019-01-16 14:20:17 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2019-02-20 14:26:02 -0500 |
commit | 544d0e961cfa96043ed3e5a718a768444c4a4c4d (patch) | |
tree | dc01914563426c18d181e368085733b0f1f4d339 | |
parent | 2215e8c7cf06f46f9995c8a7817c7ede9774a551 (diff) |
mi: When {en,dis}abling extensions, match names case-insensitively
Both because extension names are inconsistently capitalized on the wire,
and because the table we're walking spells it COMPOSITE not Composite.
The latter is certainly also a bug, but there's no reason for us to be
that strict.
Signed-off-by: Adam Jackson <ajax@redhat.com>
(cherry picked from commit bf991a5f989c5e6e726a3731f468b7b7d65d9f4a)
-rw-r--r-- | mi/miinitext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mi/miinitext.c b/mi/miinitext.c index 5596e212f..b7c702127 100644 --- a/mi/miinitext.c +++ b/mi/miinitext.c @@ -190,7 +190,7 @@ EnableDisableExtension(const char *name, Bool enable) for (i = 0; i < ARRAY_SIZE(staticExtensions); i++) { ext = &staticExtensions[i]; - if (strcmp(name, ext->name) == 0) { + if (strcasecmp(name, ext->name) == 0) { if (ext->disablePtr != NULL) { *ext->disablePtr = !enable; return TRUE; |