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:
a9616cd
)
link-config: match length for kernel commandline option
author
Dave Reisner
<dreisner@archlinux.org>
Fri, 8 Nov 2013 14:17:08 +0000
(09:17 -0500)
committer
Dave Reisner
<dreisner@archlinux.org>
Fri, 8 Nov 2013 14:25:19 +0000
(09:25 -0500)
This prevents enable_name_policy() from invariably returning false when
it matches a zero length string at the end of /proc/cmdline.
src/udev/net/link-config.c
patch
|
blob
|
history
diff --git
a/src/udev/net/link-config.c
b/src/udev/net/link-config.c
index 726945816dc79580da31dfd04a3ea2a43eaec469..cb4af143dc1fb78996dda39cee77cbc7625c40fb 100644
(file)
--- a/
src/udev/net/link-config.c
+++ b/
src/udev/net/link-config.c
@@
-202,7
+202,7
@@
static bool enable_name_policy(void) {
return true;
FOREACH_WORD_QUOTED(w, l, line, state)
- if (strneq(w, "net.ifnames=0", l))
+ if (
l == sizeof("net.ifnames=0") - 1 &&
strneq(w, "net.ifnames=0", l))
return false;
return true;