diff options
Diffstat (limited to 'mactelnetd.c')
-rw-r--r-- | mactelnetd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mactelnetd.c b/mactelnetd.c index c338678..633fb64 100644 --- a/mactelnetd.c +++ b/mactelnetd.c @@ -531,7 +531,7 @@ static void user_login(struct mt_connection *curconn, struct mt_mactelnet_hdr *p /* Spawn shell */ /* TODO: Maybe use "login -f USER" instead? renders motd and executes shell correctly for system */ - execl(user->pw_shell, "-", (char *) 0); + execl(user->pw_shell, user->pw_shell, "-", (char *) 0); exit(0); // just to be sure. } close(curconn->slavefd); |