From 318c0eb95bd08d8598e6767b738a18cca987c54e Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 10 Mar 2026 15:36:43 +0000 Subject: Revert "util/nvmutil: fix check in command sanitizer" This reverts commit b28076557b4c12965c15d6fad7c06e34c67f7921. nope. the check was already correct before. --- util/nvmutil/nvmutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index b339e608..2971eab4 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -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"); } -- cgit v1.2.1