Skip to content

Commit

Permalink
Correct use of $mktemp_counter, verbose diagnostic for temp-files
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed May 15, 2024
1 parent cc5f3b9 commit 6c17ed0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6c17ed0

Please sign in to comment.