mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
network: accept colons in network interface names, normally used for alias interfaces (#5117)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
7e974e8530
commit
a341dfe563
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user