chiark / gitweb /
Revert "link-config: match length for kernel commandline option"
authorTom Gundersen <teg@jklm.no>
Thu, 28 Nov 2013 19:06:42 +0000 (20:06 +0100)
committerTom Gundersen <teg@jklm.no>
Thu, 28 Nov 2013 19:06:42 +0000 (20:06 +0100)
This reverts commit da66338e17f4df04d9d7cc22ec971b416d57761e.

It is superseeded by 70f75a523b16ad495a7791d595ee3eececf75953

src/udev/net/link-config.c

index 37918d35e3e07cda73ad539a82363b76444ec0ba..738954c728910f290f0f2cc362c7b777ff36e45b 100644 (file)
@@ -202,7 +202,7 @@ static bool enable_name_policy(void) {
                 return true;
 
         FOREACH_WORD_QUOTED(w, l, line, state)
                 return true;
 
         FOREACH_WORD_QUOTED(w, l, line, state)
-                if (l == sizeof("net.ifnames=0") - 1 && strneq(w, "net.ifnames=0", l))
+                if (strneq(w, "net.ifnames=0", l))
                         return false;
 
         return true;
                         return false;
 
         return true;