Bug 258411 - blacklistctl dump fails shortly after first use
Summary: blacklistctl dump fails shortly after first use
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2021-09-10 17:41 UTC by Ed Maste
Modified: 2021-09-10 17:41 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Ed Maste freebsd_committer 2021-09-10 17:41:16 UTC
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 format)
blacklistctl: Can't open `/var/db/blacklistd.db': Inappropriate file type or format

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

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