From e2cd4e0fbcaaebfe90fed5d7f44290025e9fb80d Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sun, 3 Jul 2005 16:14:17 +0000 Subject: [PATCH] Added logging of remote host and terminal --- mbsebbs/mbnewusr.c | 4 ++++ mbsebbs/mbsebbs.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/mbsebbs/mbnewusr.c b/mbsebbs/mbnewusr.c index 22521774..112e7779 100644 --- a/mbsebbs/mbnewusr.c +++ b/mbsebbs/mbnewusr.c @@ -119,6 +119,10 @@ int main(int argc, char **argv) if ((p = getenv("CALLER_ID")) != NULL) if (strncmp(p, "none", 4)) Syslog('+', "CALLER %s", p); + if ((p = getenv("REMOTEHOST")) != NULL) + Syslog('+', "REMOTEHOST %s", p); + if ((p = getenv("TERM")) != NULL) + Syslog('+', "TERM=%s", p); sUnixName[0] = '\0'; diff --git a/mbsebbs/mbsebbs.c b/mbsebbs/mbsebbs.c index a6b90d82..6bb42fc8 100644 --- a/mbsebbs/mbsebbs.c +++ b/mbsebbs/mbsebbs.c @@ -113,6 +113,10 @@ int main(int argc, char **argv) if ((p = getenv("CALLER_ID")) != NULL) if (strncmp(p, "none", 4)) Syslog('+', "CALLER_ID %s", p); + if ((p = getenv("REMOTEHOST")) != NULL) + Syslog('+', "REMOTEHOST %s", p); + if ((p = getenv("TERM")) != NULL) + Syslog('+', "TERM=%s", p); /* * Initialize