]> git.ipfire.org Git - thirdparty/grub.git/commit
commands/file: Fix array/enum desync
authorDerek Foreman <derek@endlessos.org>
Fri, 26 Feb 2021 18:05:07 +0000 (12:05 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Mar 2021 15:46:09 +0000 (16:46 +0100)
commit9340f5cbce130d97ae31af6091c060763449b699
treec55e4cd4482443eff545f1d6364204566dc83485
parenta9d8de960834f376087856f9d60a214b47c76f61
commands/file: Fix array/enum desync

The commit f1957dc8a (RISC-V: Add to build system) added two entries to
the options array, but only 1 entry to the enum. This resulted in
everything after the insertion point being off by one.

This broke at least the "file --is-hibernated-hiberfil" command.

Bring the two back in sync by splitting the IS_RISCV_EFI enum entry into
two, as is done for other architectures.

Signed-off-by: Derek Foreman <derek@endlessos.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/commands/file.c