]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net: Fix download command parsing
authorPeter Tyser <ptyser@xes-inc.com>
Tue, 2 Dec 2008 18:59:51 +0000 (12:59 -0600)
committerBen Warren <biggerbadderben@gmail.com>
Fri, 5 Dec 2008 06:51:54 +0000 (22:51 -0800)
commit2e4970d8109d690adcf615d9e3cac7b5b2e8eaed
tree1aee6270ebabb566cc6a7740429c481cda65aa96
parent90665e3d97948000f98846ded37c921c7ae67dd7
net: Fix download command parsing

When CONFIG_SYS_HUSH_PARSER is defined network download
commands with 1 argument in the format 'tftp "/path/file"'
do not work as expected. The hush command parser strips
the quotes from "/path/file" which causes the network
commands to interpret "/path/file" as an address
instead of the intended filename.

The previous check for a leading quote in netboot_common()
was replaced with a check which ensures only valid
numbers are treated as addresses.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
common/cmd_net.c