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:
3dc4091
)
socket-utils: revert f1811313f42dc7ddaed3c47edc834c2bfd1309b2
author
Susant Sahani
<susant@redhat.com>
Tue, 24 Jan 2017 18:24:34 +0000
(23:54 +0530)
committer
Sven Eden
<yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:36 +0000
(17:58 +0200)
':' in not a a valid interface name.
src/basic/socket-util.c
patch
|
blob
|
history
diff --git
a/src/basic/socket-util.c
b/src/basic/socket-util.c
index 86177610d8db0d8de5ff361b75c3d02d89e6ec3f..6a8ca1d7e375168fce35c6eb1d9a29e28c84907f 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 == '/')
+ if (*p == '
:' || *p == '
/')
return false;
numeric = numeric && (*p >= '0' && *p <= '9');