Skip site navigation (1)Skip section navigation (2)
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=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@FreeBSD.org
          Reporter: freebsd@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.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236614-227>