diff --git a/libifupdown/state.c b/libifupdown/state.c index 89ad105..74d0e0c 100644 --- a/libifupdown/state.c +++ b/libifupdown/state.c @@ -45,8 +45,9 @@ lif_state_read_path(struct lif_dict *state, const char *path) FILE *fd = fopen(path, "r"); bool ret; + /* if file cannot be opened, assume an empty state */ if (fd == NULL) - return false; + return true; ret = lif_state_read(state, fd); fclose(fd);