Set other environmental variables

This commit is contained in:
Jeremy Soller
2017-01-10 09:44:43 -07:00
parent 901caafce3
commit 4a7d61eb1c
+3
View File
@@ -75,7 +75,10 @@ pub fn main() {
command.current_dir(passwd.home);
command.env("USER", &user);
command.uid("UID", passwd.uid);
command.uid("GROUPS", passwd.gid);
command.env("HOME", passwd.home);
command.env("SHELL", passwd.shell);
match command.spawn() {
Ok(mut child) => match child.wait() {