]> git.ipfire.org Git - thirdparty/util-linux.git/commit
setarch: print error when command runs without arguments
authorSami Kerola <kerolasa@iki.fi>
Tue, 17 Feb 2015 22:31:48 +0000 (22:31 +0000)
committerKarel Zak <kzak@redhat.com>
Thu, 19 Feb 2015 09:55:10 +0000 (10:55 +0100)
commit00b5ef70e2f400c655b78b107a901fb24eea7ddc
tree5eecd7727906ee6546ec91a3f69f48979f7339b3
parent0209a128b5da2febdf0fe922f51c148e365371e1
setarch: print error when command runs without arguments

$ ./setarch
Segmentation fault (core dumped)
$ coredumpctl gdb
...
Program terminated with signal SIGSEGV, Segmentation fault.
301                     if (*argv[1] != '-') {

Reference: 5edb0ea6bbd57dd916417737f98c9109dc1ecb5b
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/setarch.c