From: peoronoob Date: Tue, 24 Jan 2017 03:26:41 +0000 (+0100) Subject: network: accept colons in network interface names, normally used for alias interfaces... X-Git-Tag: v233.3~92 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3dc4091396164ac50b75f40257717e9345207d42;p=elogind.git network: accept colons in network interface names, normally used for alias interfaces (#5117) --- diff --git a/src/basic/socket-util.c b/src/basic/socket-util.c index 6a8ca1d7e..86177610d 100644 --- a/src/basic/socket-util.c +++ b/src/basic/socket-util.c @@ -891,7 +891,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');