mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
Terminal: Export a simple PATH=/bin:/usr/bin to shells.
This commit is contained in:
parent
aef6030a80
commit
fb7c7829c2
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ static void make_shell(int ptm_fd)
|
|||
exit(1);
|
||||
}
|
||||
char* args[] = { "/bin/sh", nullptr };
|
||||
char* envs[] = { "TERM=xterm", nullptr };
|
||||
char* envs[] = { "TERM=xterm", "PATH=/bin:/usr/bin", nullptr };
|
||||
rc = execve("/bin/sh", args, envs);
|
||||
if (rc < 0) {
|
||||
perror("execve");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue