Browse Source

Do not die when invoked via `vita` symlink

test-assert
Vitaliy Filippov 5 months ago
parent
commit
5a234588b9
  1. 2
      src/cli.cpp

2
src/cli.cpp

@ -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…
Cancel
Save