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 bf991a5f98
)
This commit is contained in:
parent
2215e8c7cf
commit
544d0e961c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue