state: explicitly check for explicit keyword when loading from the ifstate file

This commit is contained in:
Ariadne Conill 2020-10-21 08:55:30 -06:00
parent 61da61dfdb
commit 93dff79567

View file

@ -34,7 +34,7 @@ lif_state_read(struct lif_dict *state, FILE *fd)
char *equals_p = strchr(linebuf, '='); char *equals_p = strchr(linebuf, '=');
bool is_explicit = false; bool is_explicit = false;
if (*explicit) if (*explicit && !strcmp(explicit, "explicit"))
is_explicit = true; is_explicit = true;
if (*refcount) if (*refcount)