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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"