[Toybox] Bug of route command
Liwei Jiang
jiangliweih at gmail.com
Fri Aug 4 04:40:02 PDT 2017
Although route command is still in unfinished status, I still give it a
try. And I find a bug.
The 217 line of the code,
if (!get_hostname(*argv, (struct sockaddr_in *) &rt->rt_gateway))
should be changed to
if (!get_hostname(*(++argv), (struct sockaddr_in *) &rt->rt_gateway))
This way, command like "route add default gw 192.168.137.1" can work now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20170804/6d071166/attachment.htm>
More information about the Toybox
mailing list