I somehow thought thought that `os.rename()` behaves
like the `mv` command, and unfortunately in the way I tested this,
everything was inside a single mount-point.
Official docs is one line that doesn't explain anything really :-/
- /network/edns-buffer-size: fix swapped upstream+downstream (!1711)
- cache: fix a crash in case garbage collection is too slow (!1713)
[system] assertion "env->is_cache" failed in cdb_write
+- /cache/prefill: fix 6.0.13 regression (!1705)
Knot Resolver 6.0.14 (2025-06-03)
local function download(url, fname)
local kluautil = require('kluautil')
- local fname_tmp = os.tmpname()
+ -- fname_tmp is in the same directory, as os.rename below refuses to work across filesystems
+ local fname_tmp = fname .. '.' .. worker.id .. '.tmp'
local file, ok, errmsg
file, errmsg = io.open(fname_tmp, 'w')
if not file then