Skip to content

Commit

Permalink
easyrsa_mktemp(): Additional help on error and a helpful comments
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Jan 9, 2024
1 parent 6163678 commit 906b737
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ easyrsa_mktemp - input error"

# session directory must exist
[ "$secured_session" ] || die "\
easyrsa_mktemp - Temporary session undefined"
easyrsa_mktemp - Temporary session undefined (--tmp-dir)"

# Update counter
mktemp_counter="$(( mktemp_counter + 1 ))"
Expand Down Expand Up @@ -5401,7 +5401,8 @@ force_set_var() {
} # => force_set_var()

# Verify: $EASYRSA_SSL_CONF pki/openssl-easyrsa.cnf
# or create temp-file
# If the existing file is default then delete it
# and create temp-file. Otherwise, leave in place.
write_easyrsa_ssl_cnf_tmp() {
if [ -f "$EASYRSA_SSL_CONF" ]; then
# Set known hashes
Expand Down Expand Up @@ -5436,6 +5437,8 @@ ac05f49595e5d5fe96367229e3ce070c"
# File has been changed, leave in place
unset -v file_hash known_hash_file known_hash_heredoc_1
verbose "write_easyrsa_ssl_cnf_tmp: NO CHANGE!"

# Do NOT replace the existing file
return 0
fi
fi
Expand Down

0 comments on commit 906b737

Please sign in to comment.