From 5dbe73403f455cb880aa256598b9527a465beb39 Mon Sep 17 00:00:00 2001 From: Ingo Franzki Date: Wed, 19 Jun 2019 13:15:46 +0200 Subject: [PATCH] zkey: Fix option check for validate command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The validate command should allow to specify the --no-apqn-check option even when --apqns is not specified. Signed-off-by: Ingo Franzki Signed-off-by: Jan Höppner --- zkey/zkey.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/zkey/zkey.c b/zkey/zkey.c index dd36f19b..ff144672 100644 --- a/zkey/zkey.c +++ b/zkey/zkey.c @@ -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);