[Bug 258411] blacklistctl dump fails shortly after first use

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 10 Sep 2021 17:41:16 UTC

            Bug ID: 258411
           Summary: blacklistctl dump fails shortly after first use
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: emaste@freebsd.org

When starting blacklistd for the first time an empty /var/db/blacklistd.db file
is created, and `blacklistctl dump` produces an error in this case:

# service blacklistd start
Starting blacklistd.
# ls -l /var/db/blacklistd.db 
-rw-------  1 root  wheel  0 Sep 10 17:38 /var/db/blacklistd.db
# blacklistctl dump
state_open: can't open `/var/db/blacklistd.db' (Inappropriate file type or
blacklistctl: Can't open `/var/db/blacklistd.db': Inappropriate file type or

After a short while data is written, and `blacklistctl dump` reports an empty

# blacklistctl dump
        address/ma:port id      nfail   last access

You are receiving this mail because:
You are the assignee for the bug.