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 | |
parent | 5eb1c8e5c125902e803c3ff99ca88438223a6495 (diff) | |
download | MAC-Telnet-abd75d40f31787f289de8e34854c00672af49b2c.tar.gz MAC-Telnet-abd75d40f31787f289de8e34854c00672af49b2c.zip |
Fixed textual typo
-rw-r--r-- | mactelnet.c | 2 | ||||
-rw-r--r-- | mactelnetd.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/mactelnet.c b/mactelnet.c index 5427cb0..cb792ee 100644 --- a/mactelnet.c +++ b/mactelnet.c @@ -485,7 +485,7 @@ int main (int argc, char **argv) { if (!have_password) { char *tmp; - tmp = getpass("Passsword: "); + tmp = getpass("Password: "); strncpy(password, tmp, sizeof(password) - 1); password[sizeof(password) - 1] = '\0'; /* security */ 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. } |