zkey: Fix option check for validate command

The validate command should allow to specify the --no-apqn-check
option even when --apqns is not specified.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Ingo Franzki
2019-06-19 13:15:46 +02:00
committed by Jan Höppner
parent 819513ab38
commit 5dbe73403f

View File

@@ -1375,13 +1375,6 @@ static int command_validate_repository(void)
{
int rc;
if (g.apqns == NULL && g.noapqncheck) {
warnx("Option '--no-apqn-check' is only valid together with "
"the '--apqns|-a' option");
util_prg_print_parse_error();
return EXIT_FAILURE;
}
rc = keystore_validate_key(g.keystore, g.name, g.apqns, g.noapqncheck,
g.pkey_fd);