mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Terminal: Export a simple PATH=/bin:/usr/bin to shells.
This commit is contained in:
parent
aef6030a80
commit
fb7c7829c2
Notes:
sideshowbarker
2024-07-19 14:56:10 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/fb7c7829c2a
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…
Reference in a new issue