Add /usr/bin to default PATH
This commit is contained in:
parent
f4c68573aa
commit
0789c46bfe
@ -110,7 +110,7 @@ void set_homedir() {
|
||||
}
|
||||
|
||||
void set_path() {
|
||||
setenv("PATH", "/bin", 0);
|
||||
setenv("PATH", "/bin:/usr/bin", 0);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user