From 2ddbbd255b2ebb534e640a61a5d2f8cd0f0a1a34 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 4 Sep 2019 22:53:54 +0200 Subject: [PATCH] data load: search file with and without extension .pm3 --- client/cmddata.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/cmddata.c b/client/cmddata.c index 91bf4b65a..59c80102d 100644 --- a/client/cmddata.c +++ b/client/cmddata.c @@ -1648,8 +1648,10 @@ static int CmdLoad(const char *Cmd) { memcpy(filename, Cmd, len); char *path; - if (searchFile(&path, TRACES_SUBDIR, filename, "", false) != PM3_SUCCESS) { - return PM3_EFILE; + if (searchFile(&path, TRACES_SUBDIR, filename, ".pm3", true) != PM3_SUCCESS) { + if (searchFile(&path, TRACES_SUBDIR, filename, "", false) != PM3_SUCCESS) { + return PM3_EFILE; + } } FILE *f = fopen(path, "r");