fix USER setting in login

This commit is contained in:
Kevin Lange 2013-04-22 22:37:17 -07:00
parent ae1d555a13
commit 01a4b5f22d

View File

@ -155,14 +155,14 @@ int main(int argc, char ** argv) {
pid_t f = fork();
if (getpid() != pid) {
/* TODO: Read appropriate shell from /etc/passwd */
set_username();
set_homedir();
set_path();
char * args[] = {
"/bin/sh",
NULL
};
syscall_setuid(uid);
set_username();
set_homedir();
set_path();
int i = execvp(args[0], args);
} else {
child = f;