genfio: fix temporary file handling
authorVille Skyttä <ville.skytta@upcloud.com>
Tue, 2 Nov 2021 21:41:00 +0000 (23:41 +0200)
committerVille Skyttä <ville.skytta@upcloud.com>
Sun, 20 Feb 2022 18:23:44 +0000 (20:23 +0200)
commit31952e1d0c86a56a3969f05bb53a20fe018fe189
treeb963bc775f7baf50f11950210ffdcb06f49cf2c4
parent933651ec130ce4d27a5c249d649d20afeb2bdf38
genfio: fix temporary file handling

As a side effect, the template temp file is no longer left behind, as
a unique filename is used for it on each run.

Use the same method of figuring out the temp dir as in
check_status_file().

Signed-off-by: Ville Skyttä <ville.skytta@upcloud.com>
tools/genfio