network: accept colons in network interface names, normally used for alias interfaces (#5117)

This commit is contained in:
peoronoob
2017-01-24 04:26:41 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent 7e974e8530
commit a341dfe563
2 changed files with 3 additions and 2 deletions

View File

@@ -887,7 +887,7 @@ bool ifname_valid(const char *p) {
if ((unsigned char) *p <= 32U)
return false;
if (*p == ':' || *p == '/')
if (*p == '/')
return false;
numeric = numeric && (*p >= '0' && *p <= '9');