summaryrefslogtreecommitdiffstats
path: root/sys-utils/setarch.c
diff options
context:
space:
mode:
authorKarel Zak2015-01-28 08:26:09 +0100
committerKarel Zak2015-01-28 08:26:09 +0100
commitb2b5b502d2bba01ebacc049e9640b301c0155027 (patch)
tree6064fb0f1114533525eb990682103eba3ebb7ecc /sys-utils/setarch.c
parentlibblkid: improve MBR vs. FAT + boot sector detection (diff)
downloadkernel-qcow2-util-linux-b2b5b502d2bba01ebacc049e9640b301c0155027.tar.gz
kernel-qcow2-util-linux-b2b5b502d2bba01ebacc049e9640b301c0155027.tar.xz
kernel-qcow2-util-linux-b2b5b502d2bba01ebacc049e9640b301c0155027.zip
setarch: fix --list
$ ./setarch --list . . setarch: no architecture argument specified Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/setarch.c')
-rw-r--r--sys-utils/setarch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c
index 68183e915..c8ca5f8e7 100644
--- a/sys-utils/setarch.c
+++ b/sys-utils/setarch.c
@@ -364,7 +364,7 @@ int main(int argc, char *argv[])
case OPT_LIST:
if (!archwrapper) {
set_arch(NULL, 0, 1);
- break;
+ return EXIT_SUCCESS;
} else
warnx(_("unrecognized option '--list'"));
default: