ryantimwilson / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone
65878a
From 15010ca4aa6627c7bcfe8106fa45c4408443d5f2 Mon Sep 17 00:00:00 2001
65878a
From: Lennart Poettering <lennart@poettering.net>
65878a
Date: Wed, 2 Oct 2013 19:37:44 +0200
65878a
Subject: [PATCH] modules-load: fix error handling
65878a
65878a
---
65878a
 src/modules-load/modules-load.c | 4 ++--
65878a
 1 file changed, 2 insertions(+), 2 deletions(-)
65878a
65878a
diff --git a/src/modules-load/modules-load.c b/src/modules-load/modules-load.c
65878a
index 7b19ee0..49ee420 100644
65878a
--- a/src/modules-load/modules-load.c
65878a
+++ b/src/modules-load/modules-load.c
65878a
@@ -302,8 +302,8 @@ int main(int argc, char *argv[]) {
65878a
 
65878a
                 STRV_FOREACH(i, arg_proc_cmdline_modules) {
65878a
                         k = load_module(ctx, *i);
65878a
-                        if (k < 0)
65878a
-                                r = EXIT_FAILURE;
65878a
+                        if (k < 0 && r == 0)
65878a
+                                r = k;
65878a
                 }
65878a
 
65878a
                 r = conf_files_list_nulstr(&files, ".conf", NULL, conf_file_dirs);