chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
execute: make setup_pam() return -errno when possible
[elogind.git]
/
src
/
modules-load.c
diff --git
a/src/modules-load.c
b/src/modules-load.c
index 4b3b12109c311d237f057a48247a0bd08c44a12d..8dd98f73d82482a30bd9945d8cab97ebf43e61d4 100644
(file)
--- a/
src/modules-load.c
+++ b/
src/modules-load.c
@@
-77,7
+77,6
@@
int main(int argc, char *argv[]) {
continue;
log_error("Failed to open %s: %m", *fn);
continue;
log_error("Failed to open %s: %m", *fn);
- free(fn);
r = EXIT_FAILURE;
continue;
}
r = EXIT_FAILURE;
continue;
}
@@
-131,6
+130,7
@@
finish:
if (n_arguments > 3) {
arguments[n_arguments] = NULL;
if (n_arguments > 3) {
arguments[n_arguments] = NULL;
+ strv_uniq(arguments);
execv("/sbin/modprobe", arguments);
log_error("Failed to execute /sbin/modprobe: %m");
execv("/sbin/modprobe", arguments);
log_error("Failed to execute /sbin/modprobe: %m");