Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Dec 2025 14:40:55 +0000
From:      Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav <des@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: ce1e7a7921b2 - stable/14 - certctl: Always copy bundle fragments
Message-ID:  <69398677.30956.96cf66@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help

The branch stable/14 has been updated by des:

URL: https://cgit.FreeBSD.org/src/commit/?id=ce1e7a7921b27b82d8cda499058e685250cc695a

commit ce1e7a7921b27b82d8cda499058e685250cc695a
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2025-12-10 14:40:22 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2025-12-10 14:40:22 +0000

    certctl: Always copy bundle fragments
    
    When processing a bundle, we split it into individual certificates
    stored in temporary files, then pass the name of each temporary file
    to the creation function.  Since the temporary files will later be
    deleted, we need to force the creation function to copy rather than
    symlink these files.
    
    PR:             290957
    Fixes:          986c43bd80e7 ("certctl: Add an option to copy files.")
    Reviewed by:    allanjude
    Differential Revision:  https://reviews.freebsd.org/D54081
---
 usr.sbin/certctl/certctl.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/certctl/certctl.sh b/usr.sbin/certctl/certctl.sh
index 2bde651de126..696bc4d6a176 100755
--- a/usr.sbin/certctl/certctl.sh
+++ b/usr.sbin/certctl/certctl.sh
@@ -197,7 +197,7 @@ do_scan()
 			eolcvt "$CFILE" | egrep '^(---|[0-9A-Za-z/+=]+$)' | \
 				split -p '^-+BEGIN CERTIFICATE-+$' - "$SPLITDIR/x"
 			for CERT in $(find "$SPLITDIR" -type f) ; do
-				"$CFUNC" "$CERT"
+				LINK=-c "$CFUNC" "$CERT"
 			done
 			rm -rf "$SPLITDIR"
 			;;



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