aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-21 15:22:14 +0200
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-21 15:22:14 +0200
commit8e251296ee9c6e034d7621152d12638381bcb959 (patch)
tree330c05da412358be25868bb0c01ae73141adfb20
parent12b194b60c7f4221caffd9bb14b44c952f3e1b53 (diff)
user_init.c: set SHELL
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
-rw-r--r--src/user_init/user_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/user_init/user_init.c b/src/user_init/user_init.c
index 9d21f39e..a9072e3a 100644
--- a/src/user_init/user_init.c
+++ b/src/user_init/user_init.c
@@ -22,6 +22,7 @@ int main(int argc, char **argv) {
return 1;
setenv("HOME", user->pw_dir, true);
+ setenv("SHELL", user->pw_shell, true);
xasprintf(&cmd, "%s %s", USERINIT, argv[2]);
execl(user->pw_shell, user->pw_shell, "-c", cmd, NULL);
}