X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fload-fragment.c;h=2b10d72ab331893ed07e19de08290eafa6b54f8e;hb=b9316fb0f39fff3df792e4e72eb491ec4265b91f;hp=57c8156fdd4e6905fe6d60bf2583631112ed732c;hpb=4ad490007b70e6ac18d3cb04fa2ed92eba1451fa;p=elogind.git diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index 57c8156fd..2b10d72ab 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -2439,14 +2439,14 @@ static int load_from_path(Unit *u, const char *path) { if (null_or_empty(&st)) u->load_state = UNIT_MASKED; else { + u->load_state = UNIT_LOADED; + /* Now, parse the file contents */ r = config_parse(u->id, filename, f, UNIT_VTABLE(u)->sections, config_item_perf_lookup, (void*) load_fragment_gperf_lookup, false, true, u); if (r < 0) goto finish; - - u->load_state = UNIT_LOADED; } free(u->fragment_path);