Userland: Fix PATH environment variable ordering

This commit is contained in:
Jean-Baptiste Boric 2021-08-07 14:05:33 +02:00 committed by Andreas Kling
commit 2084289162
Notes: sideshowbarker 2024-07-18 07:05:19 +09:00
5 changed files with 5 additions and 5 deletions

View file

@ -70,7 +70,7 @@ static void run_command(int ptm_fd, String command)
args[1] = "-c";
args[2] = command.characters();
}
const char* envs[] = { "TERM=xterm", "PATH=/bin:/usr/bin:/usr/local/bin", nullptr };
const char* envs[] = { "TERM=xterm", "PATH=/usr/local/bin:/usr/bin:/bin", nullptr };
rc = execve("/bin/Shell", const_cast<char**>(args), const_cast<char**>(envs));
if (rc < 0) {
perror("execve");