Check for /bin directory existence and use /usr/bin as fallback

This commit is contained in:
EnderIce2 2024-04-01 03:39:05 +03:00
parent 5b7d0106a5
commit 74cf1cee47
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -750,7 +750,12 @@ void StartKernelShell()
}
std::string path = "/bin/";
if (!fs->PathExists("/bin"))
path = "/usr/bin/";
path += cmd_only;
debug("path: %s", path.c_str());
if (fs->PathExists(path.c_str()))
{
const char *envp[5] = {