Skip to content

Commit

Permalink
Merge pull request #390 from zowe/feature/v2/allow-bypass-version-check
Browse files Browse the repository at this point in the history
Allow bypassing zos version check with env var ZWE_zowe_launcher_unsafeDisableZosVersionCheck
  • Loading branch information
JoeNemo authored Jul 28, 2023
2 parents 9ed701f + 0e83a2c commit 44bc925
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions c/le.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,15 @@ void abortIfUnsupportedCAA() {
unsigned int zosVersion = ecvt->ecvtpseq;
#ifndef METTLE
if (zosVersion > LE_MAX_SUPPORTED_ZOS) {
printf("error: z/OS version = 0x%08X, max supported version = 0x%08X - "
"CAA fields require verification\n", zosVersion, LE_MAX_SUPPORTED_ZOS);
abort();
const char *continueWithWarning = getenv("ZWE_zowe_launcher_unsafeDisableZosVersionCheck");
if (!strcmp(continueWithWarning, "true")) {
printf("warning: z/OS version = 0x%08X, max supported version = 0x%08X - "
"CAA fields require verification\n", zosVersion, LE_MAX_SUPPORTED_ZOS);
} else {
printf("error: z/OS version = 0x%08X, max supported version = 0x%08X - "
"CAA fields require verification\n", zosVersion, LE_MAX_SUPPORTED_ZOS);
abort();
}
}
#else
/* Metal uses its own copy of CAA, reserved fields will always be available */
Expand Down

0 comments on commit 44bc925

Please sign in to comment.