From 130d965e476212f619c1843bf0a6ab4e2091539f Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Fri, 19 Sep 2003 18:32:46 +0000 Subject: [PATCH] Enabled IEMSI code in mbcico again --- ChangeLog | 2 ++ mbcico/mbcico.c | 12 +++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 391cf611..c9c39cc5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,8 @@ v0.37.8 14-Sep-2003 - 17-Sep-2003 Session handshake and EMSI handshake use the general purpose timers instead of the ttyio timers. This should prevent invalid timeouts during zmodem transfers. (bug since 0.37.6). + Compiled IEMSI code back in, starts mblogin which is not IEMSI + ready yet. v0.37.7 09-Sep-2003 - 14-09-2003 diff --git a/mbcico/mbcico.c b/mbcico/mbcico.c index e4fc7330..d160dfef 100644 --- a/mbcico/mbcico.c +++ b/mbcico/mbcico.c @@ -47,7 +47,7 @@ #include "mbcico.h" #include "session.h" - +#define IEMSI 1 int master = 0; int immediatecall = FALSE; @@ -283,13 +283,15 @@ int main(int argc, char *argv[]) #ifdef IEMSI if (strncasecmp(p, "EMSI_NAKEEC3", 12) == 0) { - Syslog('+', "Detected IEMSI client, starting BBS"); - sprintf(temp, "%s/bin/mbsebbs", getenv("MBSE_ROOT")); + Syslog('+', "Detected IEMSI client, starting mblogin"); + sprintf(temp, "%s/bin/mblogin", getenv("MBSE_ROOT")); socket_shutdown(mypid); - if (execl(temp, "mbsebbs", (char *)NULL) == -1) + if (execl(temp, "mblogin", (char *)NULL) == -1) perror("FATAL: Error loading BBS!"); + InitClient(pw->pw_name, (char *)"mbcico", CFG.location, CFG.logfile, + CFG.cico_loglevel, CFG.error_log, CFG.mgrlog, CFG.debuglog); /* * If this happens, nothing is logged! */ @@ -298,7 +300,7 @@ int main(int argc, char *argv[]) free_mem(); if (envptr) free(envptr); - exit(MBERROR_EXEC_FAILED); + exit(MBERR_EXEC_FAILED); } #endif if ((strcasecmp(argv[optind],"tsync") == 0) ||