Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Apr 2025 16:15:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 286160] tools/make_libdeps.sh fails if TRUST_ANCHORS is empty in lib/libsecureboot/local.trust.mk
Message-ID:  <bug-286160-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286160

            Bug ID: 286160
           Summary: tools/make_libdeps.sh fails if TRUST_ANCHORS is empty
                    in lib/libsecureboot/local.trust.mk
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: jlduran@FreeBSD.org

Created attachment 259638
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=259638&action=edit
Proposed fix

When running:

    # sh tools/make_libdeps.sh

An error could be thrown when the command ls -1 *.pem t*.asc does not expand.

One possible fix is to use find(1) instead of ls(1).

Then, if TRUST_ANCHORS is empty, an error will be thrown, impeding
make_libdeps.sh from continuing.

One possible fix is to demote the .error to a .warning.

Attached is a proposed fix.

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

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-286160-227>