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 /socket.c | |
parent | 98b5b2986fa1b85fd2d2e80f867f1647b4e4e3b5 (diff) |
rework config file load logic
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -88,8 +88,11 @@ static int socket_init(Unit *u) { s->timeout_usec = DEFAULT_TIMEOUT_USEC; exec_context_init(&s->exec_context); - if ((r = unit_load_fragment_and_dropin(u)) < 0) + if ((r = unit_load_fragment_and_dropin(u)) <= 0) { + if (r == 0) + r = -ENOENT; goto fail; + } if (!(t = unit_name_change_suffix(unit_id(u), ".service"))) { r = -ENOMEM; |