certctl: Revert to symlinks.

Unfortunately tar will not be able to extract base.txz to a system where
/etc and /usr are not on the same filesystem if the certificates are
hard links.

PR:		277828
Reviewed by:	mp
Differential Revision:	https://reviews.freebsd.org/D44496
This commit is contained in:
Mark Peek 2024-03-25 16:58:46 +01:00 committed by Dag-Erling Smørgrav
parent 2295cae7e6
commit 3fed4f0db5

View file

@ -110,7 +110,7 @@ create_trusted()
{
local hash certhash otherfile otherhash
local suffix
local link=${2:+-lm}
local link=${2:+-lrs}
hash=$(do_hash "$1") || return
certhash=$(openssl x509 -sha1 -in "$1" -noout -fingerprint)
@ -159,7 +159,7 @@ resolve_certname()
create_untrusted()
{
local srcfile filename
local link=${2:+-lm}
local link=${2:+-lrs}
set -- $(resolve_certname "$1")
srcfile=$1