Revert "util/nvmutil: fix check in command sanitizer"

This reverts commit b28076557b.

nope. the check was already correct before.
This commit is contained in:
Leah Rowe
2026-03-10 15:36:43 +00:00
parent 9b6b89250d
commit 318c0eb95b
+1 -1
View File
@@ -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");
}