]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
setarch: fix --list
authorKarel Zak <kzak@redhat.com>
Wed, 28 Jan 2015 07:26:09 +0000 (08:26 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 28 Jan 2015 07:26:09 +0000 (08:26 +0100)
$ ./setarch --list
.
.
setarch: no architecture argument specified

Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/setarch.c

index 68183e91524d8f86755b9403d937112d4d408a2e..c8ca5f8e7283ab9c97b625748763f7ad89a922ef 100644 (file)
@@ -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: