From 6c17ed0223ebd5ba6c6bea7b4494658946cb6bd6 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Wed, 15 May 2024 12:40:08 +0100 Subject: [PATCH] Correct use of $mktemp_counter, verbose diagnostic for temp-files Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 7b0e301ce..eda6b2528 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -968,9 +968,9 @@ Temporary session not preserved." # remove temp-session if [ "$secured_session" ]; then + verbose "mktemp_counter: $mktemp_counter uses" remove_secure_session || \ warn "cleanup - remove_secure_session failed" - verbose "mktemp_counter: $mktemp_counter uses" fi fi @@ -5194,6 +5194,9 @@ unset -v \ # after user interrupt when using manual password prompt_restore=0 + # verbose diagnostic for temp-files + mktemp_counter=0 + # Parse options while :; do # Reset per pass flags