mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:38:13 +00:00
Userland: Fix PATH environment variable ordering
This commit is contained in:
parent
b1add5860b
commit
2084289162
5 changed files with 5 additions and 5 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue