Date: Mon, 18 Mar 2019 08:23:59 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 236614] blacklistd: fix syslog invocation Message-ID: <bug-236614-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236614 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@FreeBSD.org Reporter: freebsd@oldach.net Created attachment 202950 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D202950&action= =3Dedit 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 omiss= ion of this logic which is probably a glitch by the author: Index: blacklistd.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 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 second= s", + (*lfun)(LOG_INFO, "released %s/%d:%d after %d secon= ds", buf, c.c_lmask, c.c_port, c.c_duration); } state_del(state, &c); --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236614-227>