chiark / gitweb /
network: accept colons in network interface names, normally used for alias interfaces...
[elogind.git] / 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');