[PATCH 1/2] boot: ignore all spaces between boot targets

Sascha Hauer s.hauer at pengutronix.de
Tue Sep 15 03:31:50 EDT 2020


On Mon, Sep 14, 2020 at 05:27:10PM +0200, Ahmad Fatoum wrote:
> Boot targets are split by space. strsep unlike strtok(_r) returns an
> empty string for each pair of consecutive delimiters. Ignore this case.
> 
> Note that this changes behavior: previously both
> 	boot ''
> 	global.boot.default= boot
> 
> were identical to
> 	boot /env/boot
> 
> With this change, this is no longer the case.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
>  commands/boot.c | 2 ++
>  1 file changed, 2 insertions(+)

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list