Without the break statement the next element in the iteration will
overwrite the found attributes.
Stop iterating once entry has been found, so matching attributes will
be used.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
continue;
found = true;
+ break;
}
if (!found)
if (tb[CONF_WRITE_OVERLAY_PATH])
writepath = blobmsg_get_string(tb[CONF_WRITE_OVERLAY_PATH]);
-
if (tb[CONF_JAIL])
jailname = blobmsg_get_string(tb[CONF_JAIL]);