chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3427819
)
network: accept colons in network interface names, normally used for alias interfaces...
author
peoronoob
<peoro.noob@gmail.com>
Tue, 24 Jan 2017 03:26:41 +0000
(
04:26
+0100)
committer
Sven Eden
<yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:36 +0000
(17:58 +0200)
src/basic/socket-util.c
patch
|
blob
|
history
diff --git
a/src/basic/socket-util.c
b/src/basic/socket-util.c
index 6a8ca1d7e375168fce35c6eb1d9a29e28c84907f..86177610d8db0d8de5ff361b75c3d02d89e6ec3f 100644
(file)
--- 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');