From eb3e68388f0265e587a9fe60857bb2c4a4ffb91b Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Mon, 12 Dec 2016 09:54:00 +1000 Subject: [PATCH] Added some extra logging --- bbs.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bbs.c b/bbs.c index 4454095..1b5d645 100644 --- a/bbs.c +++ b/bbs.c @@ -357,6 +357,13 @@ void s_readpass(char *buffer, int max) { } else if (c == '\b' || c == 127) { i -= 1; continue; + } else if (c == 27) { + c = s_getchar(); + if (c == 91) { + c = s_getchar(); + } + i -= 1; + continue; } if (c == '\n' || c == '\r') { @@ -536,7 +543,7 @@ void automessage_display() { } void runbbs_real(int socket, char *ip, int ssh) { - char buffer[256]; + char buffer[1024]; char password[17]; struct stat s; @@ -607,6 +614,8 @@ void runbbs_real(int socket, char *ip, int ssh) { exit(1); } + dolog("Incoming connection on node %d", mynode); + usertimeout = 10; timeoutpaused = 0; tries = 0; @@ -642,6 +651,7 @@ tryagain: } if (usernotfound) { + dolog("New user on node %d", mynode); user = new_user(); gUser = user; } else {