chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e8d788
)
modules-load: fix error handling
author
Lennart Poettering
<lennart@poettering.net>
Wed, 2 Oct 2013 17:37:44 +0000
(19:37 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 2 Oct 2013 17:45:12 +0000
(19:45 +0200)
src/modules-load/modules-load.c
patch
|
blob
|
history
diff --git
a/src/modules-load/modules-load.c
b/src/modules-load/modules-load.c
index 7b19ee02efe43babce3fe9c0ead54d8d81ef07ee..49ee4203ddcb75352098babc083e48559a4349e0 100644
(file)
--- 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);