mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil: fix check in command sanitizer
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -598,7 +598,7 @@ sanitize_command_index(size_t c)
|
||||
command[c].flags != O_RDWR)
|
||||
err(EINVAL, "invalid cmd.flags setting");
|
||||
|
||||
if (!((PLESEN > LESEN) && (SCHREIB > PLESEN) && (PSCHREIB > SCHREIB)))
|
||||
if (!((PLESEN > LESEN) || (SCHREIB > PLESEN) || (PSCHREIB > SCHREIB)))
|
||||
err(EINVAL, "some rw type integers are the same");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user