pcrlock: include pcrlock features in exit status

Fixes: #38019
This commit is contained in:
Lennart Poettering
2025-07-02 22:43:35 +02:00
parent 0f2c5848b2
commit 89e83aada8
+2 -2
View File
@@ -4990,9 +4990,9 @@ static int verb_is_supported(int argc, char *argv[], void *userdata) {
printf("%spartial%s\n", ansi_yellow(), ansi_normal());
}
assert_cc(TPM2_SUPPORT_API_PCRLOCK <= 255); /* make sure this is safe to use as process exit status */
assert_cc((TPM2_SUPPORT_API|TPM2_SUPPORT_API_PCRLOCK) <= 255); /* make sure this is safe to use as process exit status */
return ~s & TPM2_SUPPORT_API_PCRLOCK;
return ~s & (TPM2_SUPPORT_API|TPM2_SUPPORT_API_PCRLOCK);
}
static int help(int argc, char *argv[], void *userdata) {