aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDario Binacchi <dario.binacchi@amarulasolutions.com>2022-09-09 09:05:51 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2022-11-16 13:39:35 +0100
commite8dfa0c1bedf69783e54b5a7798fb14dcaeb0434 (patch)
tree9bcc9e5525cef342bd6df9bb5a8dfa023a551123 /util-linux
parentcb8d2ea8c91b5671b05e06ab2282496104453378 (diff)
downloadbusybox-w32-e8dfa0c1bedf69783e54b5a7798fb14dcaeb0434.tar.gz
busybox-w32-e8dfa0c1bedf69783e54b5a7798fb14dcaeb0434.tar.bz2
busybox-w32-e8dfa0c1bedf69783e54b5a7798fb14dcaeb0434.zip
fbset: abort on not handled options
Not all options are actually implemented. In this case, return a message and an error code to make it clear that the requested command has not been executed. function old new delta .rodata 105200 105224 +24 fbset_main 747 733 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 24/-14) Total: 10 bytes Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/fbset.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index 41cc29f37..0eaa7c0a6 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -519,6 +519,9 @@ int fbset_main(int argc, char **argv)
519 var_set.bits_per_pixel = xatou32(argv[1]); 519 var_set.bits_per_pixel = xatou32(argv[1]);
520 break; 520 break;
521#endif 521#endif
522 default:
523 bb_perror_msg_and_die("option '%s' not handled",
524 g_cmdoptions[i].name);
522 } 525 }
523 switch (g_cmdoptions[i].code) { 526 switch (g_cmdoptions[i].code) {
524 case CMD_FB: 527 case CMD_FB: