Thomas Schmitt b53ec06a1d util/grub-mkrescue: Check existence of option arguments
As reported by Victoriia Egorova in bug 65880, grub-mkrescue does not
verify that the expected argument of an option like -d or -k does really
exist in argv. So, check the loop counter before incrementing it inside
the loop which copies argv to argp_argv. Issue an error message similar
to what older versions of grub-mkrescue did with a missing argument,
e.g. 2.02.

Fixes: https://savannah.gnu.org/bugs/index.php?65880

Signed-off-by: Thomas Schmitt <scdbackup@gmx.net>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2024-06-20 19:31:35 +02:00
..
2010-09-15 14:46:53 +02:00
2023-12-12 17:55:14 +01:00
2022-03-14 16:01:07 +01:00
2023-05-17 13:23:44 +02:00
2023-06-01 11:45:00 +02:00
2013-11-07 06:35:50 +01:00
2022-03-14 16:01:07 +01:00