Userspace: init now sets HOME environment variable and cd's into HOME
This commit is contained in:
		
							parent
							
								
									0f63cfa43f
								
							
						
					
					
						commit
						d360340b9e
					
				|  | @ -144,6 +144,9 @@ int main() | |||
| 					if (setuid(user.uid) == -1) | ||||
| 						perror("setuid"); | ||||
| 
 | ||||
| 					setenv("HOME", user.home.data(), 1); | ||||
| 					chdir(user.home.data()); | ||||
| 
 | ||||
| 					execl(user.shell.data(), user.shell.data(), nullptr); | ||||
| 					perror("execl"); | ||||
| 					 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue