[Bug 236614] blacklistd: fix syslog invocation
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Mar 18 08:24:02 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236614
Bug ID: 236614
Summary: blacklistd: fix syslog invocation
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: freebsd at oldach.net
Created attachment 202950
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=202950&action=edit
patch
backlistd uses a function pointer to call the appropriate syslog function in
order to support output to stderr. The current code contains a single omission
of this logic which is probably a glitch by the author:
Index: blacklistd.c
===================================================================
--- blacklistd.c (revision 344888)
+++ blacklistd.c (working copy)
@@ -328,7 +328,7 @@
if (dbi.id[0]) {
run_change("rem", &c, dbi.id, 0);
sockaddr_snprintf(buf, sizeof(buf), "%a", ss);
- syslog(LOG_INFO, "released %s/%d:%d after %d seconds",
+ (*lfun)(LOG_INFO, "released %s/%d:%d after %d seconds",
buf, c.c_lmask, c.c_port, c.c_duration);
}
state_del(state, &c);
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list