aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-20 18:41:26 +0200
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-20 18:41:26 +0200
commitd5ebe7cc63f4a1c7dcaa6a561369b14b7d678ad6 (patch)
tree05c208199ba10412d0a9de78f59be49d0b2cb6cf
parent9cde77fb7d360ae6f49c5468d187f7da8a4b90b4 (diff)
openrc-pam: do not start a login shell
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
-rw-r--r--src/user_init/user_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user_init/user_init.c b/src/user_init/user_init.c
index 1f79ec90..ab2f1be6 100644
--- a/src/user_init/user_init.c
+++ b/src/user_init/user_init.c
@@ -19,5 +19,5 @@ int main(int argc, char **argv) {
|| setuid(user->pw_uid) == -1)
return 1;
- execl(user->pw_shell, "-", "-c", USERINIT, argv[2], NULL);
+ execl(user->pw_shell, user->pw_shell, "-c", USERINIT, argv[2], NULL);
}