From: Lennart Poettering Date: Wed, 21 Mar 2012 23:35:42 +0000 (+0100) Subject: binfmt: fix apply loop X-Git-Tag: v183~489 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=170dcb7bd575f61aa75ce55d7fc0183ace6b8b76;p=systemd binfmt: fix apply loop Noticed by Sergey Ptashnick --- diff --git a/src/binfmt/binfmt.c b/src/binfmt/binfmt.c index 28925ac8..3c8d815d 100644 --- a/src/binfmt/binfmt.c +++ b/src/binfmt/binfmt.c @@ -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; }