Do not die when invoked via vita symlink
This commit is contained in:
+1
-1
@@ -70,7 +70,7 @@ json11::Json::object cli_tool_t::parse_args(int narg, const char *args[])
|
|||||||
if (!cmd.size())
|
if (!cmd.size())
|
||||||
{
|
{
|
||||||
std::string exe(exe_name);
|
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");
|
cmd.push_back("rm-data");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user