Skip to content

Commit 816945d

Browse files
committed
lk2nd: boot: allow case-insensetive extlinux commands
1 parent 1c7961a commit 816945d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lk2nd/boot/extlinux.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <platform.h>
99
#include <platform/iomap.h>
1010
#include <smem.h>
11+
#include <strings.h>
1112
#include <stdlib.h>
1213
#include <target.h>
1314

@@ -58,7 +59,7 @@ static enum token cmd_to_tok(char *command)
5859
size_t i;
5960

6061
for (i = 0; i < ARRAY_SIZE(token_map); i++)
61-
if (!strcmp(command, token_map[i].command))
62+
if (!strcasecmp(command, token_map[i].command))
6263
return token_map[i].token;
6364

6465
return CMD_UNKNOWN;

0 commit comments

Comments
 (0)