summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a9616cd)
This prevents enable_name_policy() from invariably returning false when
it matches a zero length string at the end of /proc/cmdline.
return true;
FOREACH_WORD_QUOTED(w, l, line, state)
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;
return false;
return true;