Accepts connections via ssh

This commit is contained in:
Michiel Broek 2005-10-17 11:23:11 +00:00
parent 4d170675b4
commit ec57012585
3 changed files with 10 additions and 2 deletions

View File

@ -18,6 +18,12 @@ v0.81.2 14-Oct-2005.
mbtask: mbtask:
Some time_t/int conversions. Some time_t/int conversions.
mbsebbs:
Accepts connections via ssh.
mbnewusr:
Accepts connections via ssh.
v0.81.1 09-Oct-2005 - 14-Oct-2005 v0.81.1 09-Oct-2005 - 14-Oct-2005

View File

@ -186,7 +186,7 @@ int main(int argc, char **argv)
pout(WHITE, BLACK, (char *)COPYRIGHT); pout(WHITE, BLACK, (char *)COPYRIGHT);
Enter(2); 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. * 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"); snprintf(ttyinfo.flags, 31, "IBN,IFC,XX");
ttyinfo.type = NETWORK; ttyinfo.type = NETWORK;
ttyinfo.available = TRUE; ttyinfo.available = TRUE;
ttyinfo.honor_zmh = FALSE;
snprintf(ttyinfo.name, 36, "Network port #%d", iNode); snprintf(ttyinfo.name, 36, "Network port #%d", iNode);
} else { } else {
/* /*

View File

@ -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. * 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"); snprintf(ttyinfo.flags, 31, "IBN,IFC,XX");
ttyinfo.type = NETWORK; ttyinfo.type = NETWORK;
ttyinfo.available = TRUE; ttyinfo.available = TRUE;
ttyinfo.honor_zmh = FALSE;
snprintf(ttyinfo.name, 36, "Network port #%d", iNode); snprintf(ttyinfo.name, 36, "Network port #%d", iNode);
} else { } else {
/* /*