]> err.no Git - systemd/commitdiff
modules-load: filter out double modules
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Sep 2011 00:57:02 +0000 (02:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Sep 2011 01:56:55 +0000 (03:56 +0200)
src/modules-load.c

index 4b3b12109c311d237f057a48247a0bd08c44a12d..17b5e0bf80d5b3213d39eeb6ea1941509098287d 100644 (file)
@@ -131,6 +131,7 @@ finish:
 
         if (n_arguments > 3) {
                 arguments[n_arguments] = NULL;
+                strv_uniq(arguments);
                 execv("/sbin/modprobe", arguments);
 
                 log_error("Failed to execute /sbin/modprobe: %m");