aboutsummaryrefslogtreecommitdiffstats
path: root/sysdep
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2019-10-22 16:20:38 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2019-10-22 16:25:38 +0200
commit5ce881be82d6698c32e36add9ed6e1643150c3f3 (patch)
tree81d1e75cadd8c132c243e120c1d6051b6134115c /sysdep
parentf9eb9b4cab65b850c61738dd56632bae0e7329ca (diff)
downloadbird-5ce881be82d6698c32e36add9ed6e1643150c3f3.tar.gz
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.
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/unix/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c
index 282afae2..d9d9ad84 100644
--- a/sysdep/unix/main.c
+++ b/sysdep/unix/main.c
@@ -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);