[Toybox] [PATCH] main.c: fix unknown command handling.

enh enh at google.com
Thu Aug 22 13:09:18 PDT 2019


Fix a crash (found when I accidentally had a symlink to a toybox that
didn't support the command in question), and add disambiguating quotes
to the error message.

Before:

  $ ./toybox unknown
  munmap_chunk(): invalid pointer
  Aborted

After:

  $ ./toybox unknown
  toybox: Unknown command 'unknown'
---
 main.c | 28 ++++++++++++++++++----------
 1 file changed, 18 insertions(+), 10 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-main.c-fix-unknown-command-handling.patch
Type: text/x-patch
Size: 2955 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190822/2447035a/attachment-0002.bin>


More information about the Toybox mailing list