* Do not delete the DB_PATH when called with -R.
This commit is contained in:
parent
6561dc37cb
commit
b66f85936f
@ -558,7 +558,7 @@ init(int argc, char * * argv)
|
||||
runtime_vars.port = 0; // triggers help display
|
||||
break;
|
||||
case 'R':
|
||||
snprintf(real_path, sizeof(real_path), "rm -rf %s", db_path);
|
||||
snprintf(real_path, sizeof(real_path), "rm -rf %s/*", db_path);
|
||||
system(real_path);
|
||||
break;
|
||||
case 'V':
|
||||
|
Loading…
x
Reference in New Issue
Block a user