Skip to content
Commit 9e6d71d2 authored by This contributor prefers not to receive mails's avatar This contributor prefers not to receive mails Committed by Stefan Roese
Browse files

tools: kwboot: Allow to use -b without image path as the last getopt() option



Currently it is possible to call "kwboot -b -t /dev/ttyUSB0" but not to
call "kwboot -b /dev/ttyUSB0".

Fix it by not trying to process the last argv[], which is non-getopt()
option (tty path) as the image path for -b.

Fixes: c513fe47 ("tools: kwboot: Allow to use option -b without image path")
Reported-by: default avatarMarcel Ziswiler <marcel@ziswiler.com>
Signed-off-by: default avatarPali Rohár <pali@kernel.org>
Reviewed-by: default avatarMarcel Ziswiler <marcel@ziswiler.com>
Tested-by: default avatarMarcel Ziswiler <marcel@ziswiler.com>
parent c153576d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment