chiark / gitweb /
network: accept colons in network interface names, normally used for alias interfaces...
authorpeoronoob <peoro.noob@gmail.com>
Tue, 24 Jan 2017 03:26:41 +0000 (04:26 +0100)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:36 +0000 (17:58 +0200)
src/basic/socket-util.c

index 6a8ca1d..8617761 100644 (file)
@@ -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');