• P
    net: Fix download command parsing · 2e4970d8
    Peter Tyser 提交于
    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: NPeter Tyser <ptyser@xes-inc.com>
    Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
    2e4970d8
cmd_net.c 7.6 KB