mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Terminal: Export a simple PATH=/bin:/usr/bin to shells.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user