[systemd-commits] src/udev
Dave Reisner
dreisner at kemper.freedesktop.org
Fri Nov 8 15:26:30 CET 2013
src/udev/net/link-config.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit da66338e17f4df04d9d7cc22ec971b416d57761e
Author: Dave Reisner <dreisner at archlinux.org>
Date: Fri Nov 8 09:17:08 2013 -0500
link-config: match length for kernel commandline option
This prevents enable_name_policy() from invariably returning false when
it matches a zero length string at the end of /proc/cmdline.
diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c
index 7269458..cb4af14 100644
--- 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;
More information about the systemd-commits
mailing list