I think I found an error in one of the periodic security pkg scripts: /usr/local/etc/periodic/security/410.pkg-audit the awk expression to set PKG_DBDIR variable is awk -F: '$1 ~ /PKG_DBDIR$/ { print $2 }' this does not work because the line is as PKG_DBDIR: /.../.... so the variable PKG_DBDIR is " /.../..." there is a space at the beginning of the script. next the stat command failed because of the space stat -f %m " /.../...." Fix: I suggest the following modification: awk -F ': ' '$1 ~ /PKG_DBDIR$/ { print $2 }' How-To-Repeat: you can run : sh -f -x /usr/local/etc/periodic/security/410.pkg-audit
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Fixed independently by bapt. https://github.com/freebsd/pkg/commit/08c04e33ec2340ccf07b3fc505022ed9ba5de51b#diff-d7c2ef46352388e12b7ca0cc73d37f58