From 888b912c0c917e27bfa6fabbb1c00e7e34d2d94d Mon Sep 17 00:00:00 2001 From: Håkon Nessjøen Date: Wed, 7 Aug 2013 21:29:02 +0200 Subject: Fixed bug where the shell was executed without the first argument being it's own path. (Makes problems with programs such as busybox) --- mactelnetd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3