diff --git a/crypto777/iguana_OS.c b/crypto777/iguana_OS.c index 25cf2ef0d..e2ec357d2 100755 --- a/crypto777/iguana_OS.c +++ b/crypto777/iguana_OS.c @@ -520,7 +520,7 @@ int32_t OS_removefile(char *fname,int32_t scrubflag) void OS_ensure_directory(char *dirname) { FILE *fp; int32_t retval; char fname[512]; - if ( OS_removefile(dirname,0) < 0 ) + if ( 0 && OS_removefile(dirname,0) < 0 ) { sprintf(fname,"tmp/%d",rand()); OS_renamefile(dirname,fname); diff --git a/iguana/iguana777.c b/iguana/iguana777.c index efc0e4251..40f827cc1 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -572,6 +572,7 @@ struct iguana_info *iguana_setcoin(char *symbol,void *launched,int32_t maxpeers, if ( (coin->MAXBUNDLES= maxbundles) <= 0 ) coin->MAXBUNDLES = (strcmp(symbol,"BTC") == 0) ? IGUANA_MAXPENDBUNDLES : IGUANA_MAXPENDBUNDLES * 3; coin->myservices = services; + printf("ensure directories\n"); sprintf(dirname,"accounts/%s",symbol), OS_ensure_directory(dirname); sprintf(dirname,"DB/%s",symbol), OS_ensure_directory(dirname); sprintf(dirname,"DB/%s/accounts",symbol), OS_ensure_directory(dirname);