Add /usr/bin to default PATH

This commit is contained in:
Kevin Lange 2013-05-08 00:45:27 -07:00
parent f4c68573aa
commit 0789c46bfe
2 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,7 @@ void set_homedir() {
}
void set_path() {
setenv("PATH", "/bin", 0);
setenv("PATH", "/bin:/usr/bin", 0);
}

View File

@ -333,6 +333,7 @@ int main (int argc, char ** argv) {
pid_t _session_pid = fork();
if (!_session_pid) {
setenv("PATH", "/bin:/usr/bin", 0);
syscall_setuid(uid);
char * args[] = {"/bin/gsession", NULL};
execvp(args[0], args);