summaryrefslogtreecommitdiff
path: root/src/modules-load/modules-load.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-10-02 19:37:44 +0200
committerLennart Poettering <lennart@poettering.net>2013-10-02 19:45:12 +0200
commitb857193b1def5172e3641ca1d5bc9e08ae81aac4 (patch)
treeea96ac8da1a4e6ec76f78dbb2374fd9795009b53 /src/modules-load/modules-load.c
parent2e8d788c2f90d062f208f8c57a97e7b33cb29f7d (diff)
modules-load: fix error handling
Diffstat (limited to 'src/modules-load/modules-load.c')
-rw-r--r--src/modules-load/modules-load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules-load/modules-load.c b/src/modules-load/modules-load.c
index 7b19ee02ef..49ee4203dd 100644
--- a/src/modules-load/modules-load.c
+++ b/src/modules-load/modules-load.c
@@ -302,8 +302,8 @@ int main(int argc, char *argv[]) {
STRV_FOREACH(i, arg_proc_cmdline_modules) {
k = load_module(ctx, *i);
- if (k < 0)
- r = EXIT_FAILURE;
+ if (k < 0 && r == 0)
+ r = k;
}
r = conf_files_list_nulstr(&files, ".conf", NULL, conf_file_dirs);