summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mactelnet.c2
-rw-r--r--mactelnetd.c4
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.
}