]> err.no Git - systemd/commitdiff
binfmt: fix apply loop
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Mar 2012 23:35:42 +0000 (00:35 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Mar 2012 23:35:42 +0000 (00:35 +0100)
Noticed by Sergey Ptashnick

src/binfmt/binfmt.c

index 28925ac84b488869dfe4f4c6fd42b3ffc19a5819..3c8d815d6452f433b46bb6367d54b8aaaebbbc7e 100644 (file)
@@ -130,7 +130,7 @@ int main(int argc, char *argv[]) {
                 for (i = 1; i < argc; i++) {
                         int k;
 
-                        k = apply_file(argv[1], false);
+                        k = apply_file(argv[i], false);
                         if (k < 0 && r == 0)
                                 r = k;
                 }