From 4a7d61eb1cd5010744f860380b4e6d7f3397393a Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 10 Jan 2017 09:44:43 -0700 Subject: [PATCH] Set other environmental variables --- src/bin/login.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/login.rs b/src/bin/login.rs index f4c835419a..f92e7db89f 100644 --- a/src/bin/login.rs +++ b/src/bin/login.rs @@ -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() {