Files
factorio-clusterio/test/lib
BastiaanandClaude Fable 5.1 f4aa894fe7 Give each safeOutputFile call its own temporary file (#1026)
Two writes to the same file at the same time shared one temporary name, so the second write clobbered the first's temporary and the first rename left the second call with nothing to rename, failing with ENOENT. The host does exactly that when it saves an instance config while the instance saves it too.

The temporary now carries a random tag and is created exclusively, so concurrent writers never touch each other's file. Since the temporary is always new, the mode is applied on creation and the chmod for reused leftovers goes away. A failed rename removes its temporary instead of leaving it for the next write to overwrite.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 01:37:26 +01:00
..
2026-09-11 22:43:57 +02:00
2026-09-11 22:43:57 +02:00
2026-09-11 22:43:57 +02:00
2026-09-11 22:43:57 +02:00
2026-09-11 22:49:09 +00:00
2026-09-11 22:43:57 +02:00
2026-09-11 22:43:57 +02:00
2026-09-11 22:43:57 +02:00
2026-09-11 22:43:57 +02:00
2026-09-11 22:43:57 +02:00
2026-09-11 22:43:57 +02:00
2026-09-11 22:43:57 +02:00
2026-09-11 22:43:57 +02:00
2026-09-11 22:43:57 +02:00
2026-09-11 22:43:57 +02:00
2026-09-11 22:43:57 +02:00
2026-09-11 22:43:57 +02:00
2026-09-11 22:43:57 +02:00
2026-09-11 22:43:57 +02:00