|
@ -165,9 +165,13 @@ long ramkv777_save(struct ramkv777 *kv) |
|
|
if ( retval > 0 ) |
|
|
if ( retval > 0 ) |
|
|
{ |
|
|
{ |
|
|
sprintf(oldfname,"%s.%u",kv->name,(uint32_t)time(NULL)); |
|
|
sprintf(oldfname,"%s.%u",kv->name,(uint32_t)time(NULL)); |
|
|
sprintf(cmd,"%s %s %s",OS_mvstr(),kv->name,oldfname), system(cmd); |
|
|
sprintf(cmd,"%s %s %s",OS_mvstr(),kv->name,oldfname); |
|
|
sprintf(cmd,"%s %s %s",OS_mvstr(),fname,kv->name), system(cmd); |
|
|
if ( system(cmd) != 0 ) |
|
|
} |
|
|
printf("error issuing.(%s)\n",cmd); |
|
|
|
|
|
sprintf(cmd,"%s %s %s",OS_mvstr(),fname,kv->name); |
|
|
|
|
|
if ( system(cmd) != 0 ) |
|
|
|
|
|
printf("error issuing.(%s)\n",cmd); |
|
|
|
|
|
} |
|
|
return(retval); |
|
|
return(retval); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|