1
Fork 0
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:
Andreas Kling 2019-03-27 01:36:33 +01:00
parent aef6030a80
commit fb7c7829c2

View file

@ -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");