From afd7008b3bbf15db9773ac9129fccf354bd65e7f Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 27 Aug 2016 23:56:06 -0300 Subject: [PATCH] test --- crypto777/OS_portable.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crypto777/OS_portable.c b/crypto777/OS_portable.c index 96cc5c371..3c2340301 100755 --- a/crypto777/OS_portable.c +++ b/crypto777/OS_portable.c @@ -149,9 +149,10 @@ int32_t OS_portable_rmdir(char *dirname,int32_t diralso) { for (i=0; i<=16; i++) { - if ( i < 16 ) - sprintf(cmdstr,"rm %s/%c*",tmp,i<10?'0'+i:'a'-10+i); - else sprintf(cmdstr,"rm %s/*",tmp); + //if ( i < 16 ) + // sprintf(cmdstr,"rm %s/%c*",tmp,i<10?'0'+i:'a'-10+i); + //else sprintf(cmdstr,"rm %s/*",tmp); + sprintf(cmdstr,"rm -rf %s",tmp); if ( system(cmdstr) != 0 ) printf("error deleting dir.(%s)\n",cmdstr); }