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
Notes: sideshowbarker 2024-07-19 14:56:10 +09:00

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