Win32 mktemp help

Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
This commit is contained in:
Richard Bonhomme 2019-06-11 01:44:17 +01:00 committed by Eric F Crist
parent e426db231d
commit 57ef07f133
No known key found for this signature in database
GPG Key ID: 72964219390D0D0E

View File

@ -319,6 +319,7 @@ easyrsa_mktemp() {
# win32 mktemp shipped by easyrsa returns template as file!
if [ "$template" = "$tempfile" ]; then
# but win32 mktemp -d does work
# but win32 mktemp -u does not work
tempfile=$(mktemp -du "$tempfile") || return
printf "" > "$tempfile" || return
fi