Explorar el Código

Terminal: Export a simple PATH=/bin:/usr/bin to shells.

Andreas Kling hace 6 años
padre
commit
fb7c7829c2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Applications/Terminal/main.cpp

+ 1 - 1
Applications/Terminal/main.cpp

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