Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Check for /bin directory existence and use /usr/bin as fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
EnderIce2 committed Apr 1, 2024
1 parent 5b7d010 commit 74cf1ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kshell/shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {
Expand Down

0 comments on commit 74cf1ce

Please sign in to comment.