diff options
author | Boian Bonev <bbonev@ipacct.com> | 2011-11-03 21:48:35 +0530 |
---|---|---|
committer | Boian Bonev <bbonev@ipacct.com> | 2011-11-03 21:48:35 +0530 |
commit | ab1d9657ca42ab7576473bcd6726ba5e8ab2fcbe (patch) | |
tree | 1bbbd4533a0ed953db105dad8897cace116d0af2 /mactelnetd.c | |
parent | 75ff364cd556c1ad8cfe742f0d58d5751807c111 (diff) | |
download | MAC-Telnet-ab1d9657ca42ab7576473bcd6726ba5e8ab2fcbe.tar.gz MAC-Telnet-ab1d9657ca42ab7576473bcd6726ba5e8ab2fcbe.zip |
tell the new shell that its a login one
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 e9c2042..aef5027 100644 --- a/mactelnetd.c +++ b/mactelnetd.c @@ -517,7 +517,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, user->pw_shell, (char *) 0); + execl(user->pw_shell, "-", (char *) 0); exit(0); // just to be sure. } close(curconn->slavefd); |