From 0841a94c6597454ed9d4c661b60d56c6c0169a58 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 9 Apr 2013 23:40:15 +0200 Subject: [PATCH] nfc-mfclassic: allow option f for read operation too --- ChangeLog | 6 ++++++ utils/nfc-mfclassic.c | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 14c6f9d..acdf056 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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) -------------------------------------------- diff --git a/utils/nfc-mfclassic.c b/utils/nfc-mfclassic.c index a36f56e..d96f8ff 100644 --- a/utils/nfc-mfclassic.c +++ b/utils/nfc-mfclassic.c @@ -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]);