mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
searchFile for firmwares
This commit is contained in:
parent
f7624a7767
commit
6385ee960f
4 changed files with 42 additions and 14 deletions
|
@ -956,7 +956,10 @@ static int searchFinalFile(char **foundpath, const char *pm3dir, const char *sea
|
|||
}
|
||||
// try pm3 dirs in current repo workdir (dev mode)
|
||||
if ((exec_path != NULL) &&
|
||||
((strcmp(TRACES_SUBDIR, pm3dir) == 0))) {
|
||||
((strcmp(TRACES_SUBDIR, pm3dir) == 0) ||
|
||||
(strcmp(FIRMWARES_SUBDIR, pm3dir) == 0) ||
|
||||
(strcmp(BOOTROM_SUBDIR, pm3dir) == 0) ||
|
||||
(strcmp(FULLIMAGE_SUBDIR, pm3dir) == 0))) {
|
||||
char *above = "../";
|
||||
char *path = calloc(strlen(exec_path) + strlen(above) + strlen(pm3dir) + strlen(filename) + 1, sizeof(char));
|
||||
if (path == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue