]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
setarch: fix regression for sparc builds
authorWaldemar Brodkorb <wbx@openadk.org>
Sun, 29 Mar 2015 13:00:30 +0000 (15:00 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 30 Mar 2015 09:50:01 +0000 (11:50 +0200)
With following commit:
5edb0ea6bbd57dd916417737f98c9109dc1ecb5b

Sparc cross-compile fails.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
sys-utils/setarch.c

index 337f8fbaf9f2766a863f58536f046b4fec4af69d..b6159c5b468abe53337ca13c2a65058c851b7af0 100644 (file)
@@ -309,7 +309,7 @@ int main(int argc, char *argv[])
 #if defined(__sparc64__) || defined(__sparc__)
        if (archwrapper && strcmp(arch, "sparc32bash") == 0) {
                if (set_arch(arch, 0L, 0))
-                       err(EXIT_FAILURE, _("Failed to set personality to %s"), p);
+                       err(EXIT_FAILURE, _("Failed to set personality to %s"), arch);
                execl("/bin/bash", NULL);
                err(EXIT_FAILURE, _("failed to execute %s"), "/bin/bash");
        }