Page MenuHomeFreeBSD

nanobsd: guard triggers cleanup find against missing dir
AbandonedPublic

Authored by senguptaangshuman17_gmail.com on Aug 27 2026, 9:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 27, 8:43 PM
Unknown Object (File)
Thu, Sep 24, 6:37 AM
Unknown Object (File)
Thu, Sep 24, 6:14 AM
Unknown Object (File)
Sat, Sep 19, 11:35 PM
Unknown Object (File)
Sat, Sep 19, 5:21 PM
Unknown Object (File)
Fri, Sep 18, 9:42 PM
Unknown Object (File)
Fri, Sep 18, 3:11 AM
Unknown Object (File)
Wed, Sep 16, 10:53 PM
Subscribers

Details

Reviewers
jlduran
jrm
ashish
Summary

find(1) errors on a nonexistent path, and under set -e that
kills the build. var/db/pkg/triggers only exists if pkg(8)
actually created it during install, so check -d before find
in _xxx_tgt_pkg_triggers instead of assuming it's there.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 76273
Build 73156: arc lint + arc unit