chiark / gitweb /
modules-load: fix error handling
authorLennart Poettering <lennart@poettering.net>
Wed, 2 Oct 2013 17:37:44 +0000 (19:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 2 Oct 2013 17:45:12 +0000 (19:45 +0200)
src/modules-load/modules-load.c

index 7b19ee0..49ee420 100644 (file)
@@ -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);