Move history and logfile to ~/.proxmark3

This commit is contained in:
Philippe Teuwen 2019-08-28 21:15:11 +02:00
parent 03867018f1
commit d2d58db985
5 changed files with 74 additions and 13 deletions

View file

@ -896,6 +896,8 @@ out:
}
int searchFile(char **foundpath, const char *pm3dir, const char *searchname, const char *suffix) {
if (foundpath == NULL)
return PM3_EINVARG;
char *filename = filenamemcopy(searchname, suffix);
if (filename == NULL) return PM3_EMALLOC;
int res = searchFinalFile(foundpath, pm3dir, filename);