[Toybox] bug: commands with no options silently allow all options

enh enh at google.com
Thu Mar 16 10:08:57 PDT 2017


commands with options are fine:

$ ./toybox df -z
...
df: Unknown option z

but any command with no options silently ignores any options:

$ ./toybox uptime -z
 10:07:34 up 34 days, 30 min,  6 users,  load average: 4.44, 2.28, 1.46
$ ./toybox uptime -z g
 10:08:26 up 34 days, 31 min,  6 users,  load average: 3.65, 2.46, 1.57
$ ./toybox uptime g
 10:08:28 up 34 days, 31 min,  6 users,  load average: 3.65, 2.46, 1.57

-- 
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Android native code/tools questions? Mail me/drop by/add me as a reviewer.


More information about the Toybox mailing list