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.
This commit is contained in:
parent
f9eb9b4cab
commit
5ce881be82
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue