summaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-28 02:44:47 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-28 02:44:47 +0100
commitd46de8a1a249e179687361dcaeba27e1c586253a (patch)
tree42f790e46583f88c557ac33ea67e857654a794a4 /socket.c
parent98b5b2986fa1b85fd2d2e80f867f1647b4e4e3b5 (diff)
rework config file load logic
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index 7bcd112739..926a0fb646 100644
--- a/socket.c
+++ b/socket.c
@@ -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;