From ec57012585a25aee7d5b98bd985dda85592819c7 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 17 Oct 2005 11:23:11 +0000 Subject: [PATCH] Accepts connections via ssh --- ChangeLog | 6 ++++++ mbsebbs/mbnewusr.c | 3 ++- mbsebbs/mbsebbs.c | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a9240333..ed5eab65 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18,6 +18,12 @@ v0.81.2 14-Oct-2005. mbtask: Some time_t/int conversions. + mbsebbs: + Accepts connections via ssh. + + mbnewusr: + Accepts connections via ssh. + v0.81.1 09-Oct-2005 - 14-Oct-2005 diff --git a/mbsebbs/mbnewusr.c b/mbsebbs/mbnewusr.c index 19a94e78..9720c29a 100644 --- a/mbsebbs/mbnewusr.c +++ b/mbsebbs/mbnewusr.c @@ -186,7 +186,7 @@ int main(int argc, char **argv) pout(WHITE, BLACK, (char *)COPYRIGHT); Enter(2); - if ((p = getenv("REMOTEHOST")) != NULL) { + if (((p = getenv("REMOTEHOST")) != NULL) || ((p = getenv("SSH_CLIENT")) != NULL)) { /* * Network connection, no tty checking but fill a ttyinfo record. */ @@ -197,6 +197,7 @@ int main(int argc, char **argv) snprintf(ttyinfo.flags, 31, "IBN,IFC,XX"); ttyinfo.type = NETWORK; ttyinfo.available = TRUE; + ttyinfo.honor_zmh = FALSE; snprintf(ttyinfo.name, 36, "Network port #%d", iNode); } else { /* diff --git a/mbsebbs/mbsebbs.c b/mbsebbs/mbsebbs.c index 7f4453a3..2c6d037c 100644 --- a/mbsebbs/mbsebbs.c +++ b/mbsebbs/mbsebbs.c @@ -213,7 +213,7 @@ int main(int argc, char **argv) } - if ((p = getenv("REMOTEHOST")) != NULL) { + if (((p = getenv("REMOTEHOST")) != NULL) || ((p = getenv("SSH_CLIENT")) != NULL)) { /* * Network connection, no tty checking but fill a ttyinfo record. */ @@ -224,6 +224,7 @@ int main(int argc, char **argv) snprintf(ttyinfo.flags, 31, "IBN,IFC,XX"); ttyinfo.type = NETWORK; ttyinfo.available = TRUE; + ttyinfo.honor_zmh = FALSE; snprintf(ttyinfo.name, 36, "Network port #%d", iNode); } else { /*