aboutsummaryrefslogtreecommitdiff
path: root/mail/popd/files/patch-popd.c
blob: 6176902ed7943ad9319e1f51f8f6b6012950c63b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- 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