forked from vitalif/vitastor
Do not die when invoked via `vita` symlink
parent
b82c30328f
commit
5a234588b9
|
@ -70,7 +70,7 @@ json11::Json::object cli_tool_t::parse_args(int narg, const char *args[])
|
|||
if (!cmd.size())
|
||||
{
|
||||
std::string exe(exe_name);
|
||||
if (exe.substr(exe.size()-11) == "vitastor-rm")
|
||||
if (exe.size() >= 11 && exe.substr(exe.size()-11) == "vitastor-rm")
|
||||
{
|
||||
cmd.push_back("rm-data");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue