Skip to content

Commit 90ef353

Browse files
committed
verify_working_env(): Always create throw-away temp-file
Signed-off-by: Richard T Bonhomme <[email protected]>
1 parent 40cddc5 commit 90ef353

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

easyrsa3/easyrsa

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5785,7 +5785,7 @@ lock-file removed - Please try running the easyrsa command again."
57855785
verify_working_env() {
57865786
verbose "verify_working_env: BEGIN"
57875787

5788-
# Oppertunist PKI lock-file
5788+
# Opportunist PKI lock-file
57895789
[ "$EASYRSA_NO_LOCKFILE" ] || request_lock_file
57905790

57915791
# For commands which 'require a PKI' and PKI exists
@@ -5813,8 +5813,9 @@ verify_working_env() {
58135813
# If there is a valid temp-dir:
58145814
# Create temp-session and openssl-easyrsa.cnf (Temp) now
58155815
if [ -d "$EASYRSA_TEMP_DIR" ]; then
5816-
# Temp dir session
5816+
# Temp dir session and throw-away temp-file
58175817
secure_session
5818+
easyrsa_mktemp test_temp_file
58185819

58195820
# global safe ssl cnf temp
58205821
write_global_safe_ssl_cnf_tmp

0 commit comments

Comments
 (0)