]> git.ipfire.org Git - thirdparty/util-linux.git/commit
setarch: differentiate between "unrecognized" and "cannot set"
authorBenno Schulenberg <bensberg@justemail.net>
Sat, 10 Jan 2015 13:41:32 +0000 (14:41 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 12 Jan 2015 10:28:21 +0000 (11:28 +0100)
commit1e098672f4a98abc2b0b387025a55e5f9821cba3
tree21cec7b2fb1a756fbf69389fb8da62ce0c1824a8
parent4926bc368352fe4324b4c38121f533ed88dbe320
setarch: differentiate between "unrecognized" and "cannot set"

When the provided string does not match any architecture that
setarch knows about, the response stays "Unrecognized architecture",
but when trying to set the specified architecture does not have any
effect, then respond with "Kernel cannot set architecture to...".

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
sys-utils/setarch.c