diff options
author | Håkon Nessjøen <haakon.nessjoen@gmail.com> | 2011-02-24 21:13:57 +0100 |
---|---|---|
committer | Håkon Nessjøen <haakon.nessjoen@gmail.com> | 2011-02-24 21:13:57 +0100 |
commit | abd75d40f31787f289de8e34854c00672af49b2c (patch) | |
tree | 161f07653a57eaf316a41c7a446cb696a31aa02b /mactelnetd.c | |
parent | 5eb1c8e5c125902e803c3ff99ca88438223a6495 (diff) | |
download | MAC-Telnet-abd75d40f31787f289de8e34854c00672af49b2c.tar.gz MAC-Telnet-abd75d40f31787f289de8e34854c00672af49b2c.zip |
Fixed textual typo
Diffstat (limited to 'mactelnetd.c')
-rw-r--r-- | mactelnetd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mactelnetd.c b/mactelnetd.c index c97d50a..9ea0a61 100644 --- a/mactelnetd.c +++ b/mactelnetd.c @@ -506,8 +506,10 @@ static void user_login(struct mt_connection *curconn, struct mt_mactelnet_hdr *p /* Display MOTD */ display_motd(); - /* Spawn shell */ chdir(user->pw_dir); + + /* 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); exit(0); // just to be sure. } |