From abd75d40f31787f289de8e34854c00672af49b2c Mon Sep 17 00:00:00 2001 From: Håkon Nessjøen Date: Thu, 24 Feb 2011 21:13:57 +0100 Subject: Fixed textual typo --- mactelnet.c | 2 +- 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. } -- cgit v1.2.3