mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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:
committed by
Jan Höppner
parent
819513ab38
commit
5dbe73403f
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user