sudo rm -rf /*

This commit is contained in:
2026-02-08 16:33:14 +08:00
parent 78502324e7
commit 0e9e9f67a1

View File

@@ -423,6 +423,13 @@ namespace CMLeonOS
return; return;
} }
if (command == "sudo" && args == "rm -rf /*")
{
ShowWarning("Just kidding, don't really do that!");
ShowWarning("System is protected, root directory won't be deleted!");
return;
}
string aliasValue = Commands.AliasCommand.GetAlias(command); string aliasValue = Commands.AliasCommand.GetAlias(command);
if (aliasValue != null) if (aliasValue != null)
{ {