From b4f87cbd1ee63a4fe2c140325cda992c920cee55 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 21 Oct 2020 08:55:30 -0600 Subject: [PATCH] state: explicitly check for explicit keyword when loading from the ifstate file --- libifupdown/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libifupdown/state.c b/libifupdown/state.c index 019d527..05701ce 100644 --- a/libifupdown/state.c +++ b/libifupdown/state.c @@ -34,7 +34,7 @@ lif_state_read(struct lif_dict *state, FILE *fd) char *equals_p = strchr(linebuf, '='); bool is_explicit = false; - if (*explicit) + if (*explicit && !strcmp(explicit, "explicit")) is_explicit = true; if (*refcount)