Mailing List Archive

svn commit: rev 6625 - incubator/spamassassin/trunk/spamd
Author: jm
Date: Wed Feb 11 12:41:19 2004
New Revision: 6625

Modified:
incubator/spamassassin/trunk/spamd/spamd.raw
Log:
added reply to FIXME

Modified: incubator/spamassassin/trunk/spamd/spamd.raw
==============================================================================
--- incubator/spamassassin/trunk/spamd/spamd.raw (original)
+++ incubator/spamassassin/trunk/spamd/spamd.raw Wed Feb 11 12:41:19 2004
@@ -293,6 +293,7 @@
defined(setlogsock($log_socket)) || die $!;
# The next call is required to actually open the socket.
# FIXME: mss: wouldn't a openlog('spamd', 'cons,pid,ndelay', $log_facility); be better?
+ # jm: no, it's unportable. if I recall correctly some perls will die
syslog('debug', "%s", "spamd starting");
};
my $err = $@;
@@ -325,7 +326,7 @@
# The user wants to log to some file -- open it on STDLOG. Falling back to STDERR
# if opening the file fails.
elsif ($log_facility eq 'file') {
- unless(open(STDLOG, ">> $log_file")) {
+ unless(open(STDLOG, ">>$log_file")) {
warn "failed to open logfile ${log_file}: $!\n" .
"reporting logs to stderr\n";
$log_facility = 'stderr';