diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-28 02:44:47 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-28 02:44:47 +0100 |
commit | d46de8a1a249e179687361dcaeba27e1c586253a (patch) | |
tree | 42f790e46583f88c557ac33ea67e857654a794a4 /unit.c | |
parent | 98b5b2986fa1b85fd2d2e80f867f1647b4e4e3b5 (diff) |
rework config file load logic
Diffstat (limited to 'unit.c')
-rw-r--r-- | unit.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -372,7 +372,7 @@ void unit_dump(Unit *u, FILE *f, const char *prefix) { /* Common implementation for multiple backends */ int unit_load_fragment_and_dropin(Unit *u) { - int r; + int r, ret; assert(u); @@ -380,11 +380,13 @@ int unit_load_fragment_and_dropin(Unit *u) { if ((r = unit_load_fragment(u)) < 0) return r; + ret = r > 0; + /* Load drop-in directory data */ if ((r = unit_load_dropin(u)) < 0) return r; - return 0; + return ret; } int unit_load(Unit *u) { |