mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 10:42:45 +00:00
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:
parent
2295cae7e6
commit
3fed4f0db5
@ -110,7 +110,7 @@ create_trusted()
|
|||||||
{
|
{
|
||||||
local hash certhash otherfile otherhash
|
local hash certhash otherfile otherhash
|
||||||
local suffix
|
local suffix
|
||||||
local link=${2:+-lm}
|
local link=${2:+-lrs}
|
||||||
|
|
||||||
hash=$(do_hash "$1") || return
|
hash=$(do_hash "$1") || return
|
||||||
certhash=$(openssl x509 -sha1 -in "$1" -noout -fingerprint)
|
certhash=$(openssl x509 -sha1 -in "$1" -noout -fingerprint)
|
||||||
@ -159,7 +159,7 @@ resolve_certname()
|
|||||||
create_untrusted()
|
create_untrusted()
|
||||||
{
|
{
|
||||||
local srcfile filename
|
local srcfile filename
|
||||||
local link=${2:+-lm}
|
local link=${2:+-lrs}
|
||||||
|
|
||||||
set -- $(resolve_certname "$1")
|
set -- $(resolve_certname "$1")
|
||||||
srcfile=$1
|
srcfile=$1
|
||||||
|
Loading…
Reference in New Issue
Block a user