[syslog-ng] [Bug 201] New: system() does not work on FreeBSD: /dev/ klog is pretty much ignored

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Fri Oct 5 11:19:56 CEST 2012


https://bugzilla.balabit.com/show_bug.cgi?id=201

           Summary: system() does not work on FreeBSD: /dev/klog is pretty
                    much ignored
           Product: syslog-ng
           Version: 3.3.x
          Platform: All
        OS/Version: FreeBSD
            Status: ASSIGNED
          Severity: normal
          Priority: unspecified
         Component: syslog-ng
        AssignedTo: algernon at balabit.hu
        ReportedBy: algernon at balabit.hu
Type of the Report: ---
   Estimated Hours: 0.0


While debugging another problem, I found a couple of issues with system() on FreeBSD:

 * follow-freq(0) doesn't appear to work, so /dev/klog gets ignored outright
 * Even with follow-freq(1), we never read from /dev/klog, because stat() will report its size to be 0, so we never end up reading from it.

The second is easy to fix, adding an || !S_ISREG(st.st_mode) to the appropriate condition in log_reader_io_follow_file() does the right thing.


-- 
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the syslog-ng mailing list