]> git.ipfire.org Git - thirdparty/util-linux.git/commit
setarch: don't return address of automatic variable
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 19 Jan 2019 22:18:16 +0000 (23:18 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Apr 2019 10:16:11 +0000 (12:16 +0200)
commit24b1741940c50a81b5914cc2b71a189f15a708ef
treeda24ce86d3e550b7c3dce7a15311ad4622d80b1e
parent1cc0ae600f802f8350f883321c54512d1e9853ea
setarch: don't return address of automatic variable

On architectures without special personalities setarch uses the contents
of a local variable with automatic storage duration after return from
the function, causing it to report a spurious error.

$ setarch m68k
setarch: Kernel cannot set architecture to m68k

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
sys-utils/setarch.c