mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
1d2ced0bb7
1) Lower the syslog priority of various messages so that only serious application problems are sent to /var/log/messages and the console using the standard syslog.conf. 2) Log successful login attempts to that POP-before-SMTP log watchers can make use of popd's syslog output. The author has already agreed to incorporate these patches, but will probably not roll a new release just for this.
20 lines
554 B
C
20 lines
554 B
C
--- popd.c.orig Tue Apr 17 05:09:26 2001
|
|
+++ popd.c Wed May 16 09:00:39 2001
|
|
@@ -501,6 +503,7 @@
|
|
closesigpipe();
|
|
opensigpipe();
|
|
setsignals();
|
|
+ facility = LOG_INFO;
|
|
if (config.daemonise || config.debug)
|
|
getnameinfo((struct sockaddr *)&addr, addr.ss_len,
|
|
ip, sizeof(ip), NULL, 0,
|
|
@@ -518,6 +521,8 @@
|
|
sendline("+OK %s ready %s", IDENT, config.timestamp);
|
|
switch (authenticate(&user)) {
|
|
case TRUE:
|
|
+ syslog(facility, "Login user=%s host=[%s]",
|
|
+ user->username, ip);
|
|
if (!config.proxy)
|
|
transaction(user);
|
|
else
|