From 5a279c7af7b265f6250bb772bbc2efcc4676c58e Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Tue, 13 Jan 1998 01:30:28 +0000 Subject: [PATCH] * Fixed small typo in syslogd-listfiles * Corrected debug output concerning remote receiption * Removed race condition in syslogd-listfiles * Modified logfile detection routine to take care of double listed logfiles. Thanks to Roman Hodek for providing an appropriate patch. (Bug#17000) --- syslogd.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/syslogd.c b/syslogd.c index 3480af9..fa950b7 100644 --- a/syslogd.c +++ b/syslogd.c @@ -334,6 +334,9 @@ static char sccsid[] = "@(#)syslogd.c 5.27 (Berkeley) 10/10/88"; * Sat Jan 10 01:33:06 CET 1998: Martin Schulze * Fixed small bugs in F_FORW_UNKN meachanism. Thanks to Torsten * Neumann for pointing me to it. + * + * Mon Jan 12 19:50:58 CET 1998: Martin Schulze + * Modified debug output concerning remote receiption. */ @@ -866,7 +869,8 @@ int main(argc, argv) } else { inetm = finet; InetInuse = 1; - dprintf("listening on syslog UDP port.\n"); + if ( AcceptRemote ) + dprintf("Opened syslog UDP port.\n"); } } } @@ -917,8 +921,10 @@ int main(argc, argv) * Add the Internet Domain Socket to the list of read * descriptors. */ - if ( InetInuse && AcceptRemote ) + if ( InetInuse && AcceptRemote ) { FD_SET(inetm, &readfds); + dprintf("Listening on syslog UDP port.\n"); + } #endif if ( debugging_on )