nfc-mfclassic: allow option f for read operation too

This commit is contained in:
Philippe Teuwen 2013-04-09 23:40:15 +02:00
parent 29c7ef19a9
commit 0841a94c65
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,9 @@
TBD - 1.7.0
-----------
Fixes:
- nfc-mfclassic: allow option f for read operation too
Apr 05, 2013 - 1.7.0-rc7 (release candidate)
--------------------------------------------

View file

@ -486,6 +486,7 @@ main(int argc, const char *argv[])
bUseKeyA = tolower((int)((unsigned char) * (argv[2]))) == 'a';
bTolerateFailures = tolower((int)((unsigned char) * (argv[2]))) != (int)((unsigned char) * (argv[2]));
bUseKeyFile = (argc > 4);
bForceKeyFile = ((argc > 5) && (strcmp((char *)argv[5], "f") == 0));
} else if (strcmp(command, "w") == 0 || strcmp(command, "W") == 0) {
if (argc < 4) {
print_usage(argv[0]);