Added logging of remote host and terminal
This commit is contained in:
parent
f92ef519e7
commit
e2cd4e0fbc
@ -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';
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user