Added logging of remote host and terminal

This commit is contained in:
Michiel Broek 2005-07-03 16:14:17 +00:00
parent f92ef519e7
commit e2cd4e0fbc
2 changed files with 8 additions and 0 deletions

View File

@ -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';

View File

@ -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