Preverse profile and fallback blocks.
authorRoy Marples <roy@marples.name>
Fri, 31 May 2019 21:43:26 +0000 (22:43 +0100)
committerRoy Marples <roy@marples.name>
Fri, 31 May 2019 21:43:26 +0000 (22:43 +0100)
src/libdhcpcd/config.c

index 53949f4d8ab38a0df154a2d5c9cfd885369e9a9b..ba4bc07260de530847deb80f6ab06234a33958ae 100644 (file)
@@ -267,7 +267,9 @@ config(DHCPCD_CONNECTION *con, int action, const char *block, const char *name,
                } else {
                        /* Start of a block, skip if not ours */
                        if (strcmp(option, "interface") == 0 ||
-                           strcmp(option, "ssid") == 0)
+                           strcmp(option, "ssid") == 0 ||
+                           strcmp(option, "profile") == 0 ||
+                           strcmp(option, "fallback") == 0)
                        {
                                if (block && name && line &&
                                    strcmp(option, block) == 0 &&