Skip to content
Snippets Groups Projects
Commit 5ce881be authored by Ondřej Zajíček's avatar Ondřej Zajíček
Browse files

Accept uppercase letters in iproute2 names

Names read from texfiles in /etc/iproute2/* are normalized by replacing
non-alphanumeric chars with underscore. The patch fixes handling of
uppercase letters, which were handled as non-alphanumberic.

Thanks to Igor Gavrilov for the bugreport.
parent f9eb9b4c
No related branches found
No related tags found
No related merge requests found
Pipeline #54718 passed with warnings
......@@ -139,7 +139,7 @@ read_iproute_table(char *file, char *prefix, int max)
continue;
for(p = name; *p; p++)
if ((*p < 'a' || *p > 'z') && (*p < '0' || *p > '9') && (*p != '_'))
if ((*p < 'a' || *p > 'z') && (*p < 'A' || *p > 'Z') && (*p < '0' || *p > '9') && (*p != '_'))
*p = '_';
add_num_const(namebuf, val);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment