]> err.no Git - yubikey-personalization/commitdiff
check for swap_seen
authorKlas Lindfors <klas@yubico.com>
Thu, 6 Dec 2012 08:33:10 +0000 (09:33 +0100)
committerKlas Lindfors <klas@yubico.com>
Thu, 6 Dec 2012 08:33:10 +0000 (09:33 +0100)
ykpers-args.c

index f74d2c45983d2f1fe0ffe5ab52c0917689205017..4c55db716fd2dc969096f7cc53c71d1a66599127 100644 (file)
@@ -663,7 +663,7 @@ int args_to_config(int argc, char **argv, YKP_CONFIG *cfg, YK_KEY *yk,
                }
        }
 
-       if (!slot_chosen && !ndef_seen && !usb_mode_seen && !scan_map_seen && !scan_map_seen) {
+       if (!slot_chosen && !ndef_seen && !swap_seen && !usb_mode_seen && !scan_map_seen) {
                fprintf(stderr, "A slot must be chosen with -1 or -2.\n");
                *exit_code = 1;
                return 0;