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

2022-02-10 Thread Stefan Roese
On 2/7/22 10:12, Pali Rohár wrote: 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: c513fe47dca2 ("tools: kwboot: Allow

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

2022-02-07 Thread Stefan Roese
On 2/7/22 10:12, Pali Rohár wrote: 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: c513fe47dca2 ("tools: kwboot: Allow

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

2022-02-07 Thread Pali Rohár
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: c513fe47dca2 ("tools: kwboot: Allow to use option -b without image path"