[Toybox] [patch] fold
Hyejin Kim
hj8296 at gmail.com
Sun May 24 22:29:51 PDT 2015
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"
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20150525/75415ffe/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fold-check-invalid-value-of-w-option.patch
Type: application/octet-stream
Size: 676 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20150525/75415ffe/attachment-0004.obj>
More information about the Toybox
mailing list