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 6a8ca1d7e375168fce35c6eb1d9a29e28c84907f..86177610d8db0d8de5ff361b75c3d02d89e6ec3f 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');