Hi.

On testing fold command, I found w option didnt check the range of value.
Of course, checked busybox's behavior, too.
the value of w option is available more than 1
Plz, have a look.



diff --git a/toys/pending/fold.c b/toys/pending/fold.c
index 80bb241..0face64 100644
--- a/toys/pending/fold.c
+++ b/toys/pending/fold.c
@@ -4,7 +4,7 @@
  *
  * See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/fold.html

-USE_FOLD(NEWTOY(fold, "bsuw#", TOYFLAG_USR|TOYFLAG_BIN))
+USE_FOLD(NEWTOY(fold, "bsuw#<1", TOYFLAG_USR|TOYFLAG_BIN))

 config FOLD
   bool "fold"
--

Attachment: 0001-fold-check-invalid-value-of-w-option.patch
Description: Binary data

_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to