Bug 252119

Summary: ports-mgmt/pkg 1.16 outputs "(null)" for "pkg audit -q" when no vulnerable packages are installed
Product: Ports & Packages Reporter: Thomas Steen Rasmussen / Tykling <thomas>
Component: Individual Port(s)Assignee: freebsd-pkg (Nobody) <pkg>
Status: Closed FIXED    
Severity: Affects Many People Flags: bugzilla: maintainer-feedback? (pkg)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Thomas Steen Rasmussen / Tykling 2020-12-24 22:46:21 UTC
Hello

After upgrading pkg to 1.16 all my monitoring for vulnerable packages started making noise.

Before pkg 1.16 "pkg audit -q" would not output anything if no packages were vulnerable, and would output one line per vulnerable package otherwise. I use this in a simple script to keep an eye on things.

After pkg 1.16 it outputs the string "(null)" to stdout when no vulnerable packages are installed, meaning my monitoring now says that I have 1 vulnerable package everywhere :)
Comment 1 Baptiste Daroussin freebsd_committer freebsd_triage 2020-12-26 15:49:11 UTC
fixed in 1.16.1