From a42cb1c43d15ed6c65f166f35cb8c39a897a4a17 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 4 Aug 2025 14:51:57 +0100 Subject: [PATCH] libstore: use `makeTempSiblingPath` in `replaceValidPath` Change-Id: I6a6a69643732c1bb4942425ae1f179a411412fd5 --- lix/libstore/build/derivation-goal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lix/libstore/build/derivation-goal.cc b/lix/libstore/build/derivation-goal.cc index bcfb88f14..f72a51a9d 100644 --- a/lix/libstore/build/derivation-goal.cc +++ b/lix/libstore/build/derivation-goal.cc @@ -762,7 +762,7 @@ void replaceValidPath(const Path & storePath, const Path & tmpPath) Path oldPath; if (pathExists(storePath)) { do { - oldPath = makeTempPath(storePath, ".old"); + oldPath = makeTempSiblingPath(storePath); // store paths are often directories so we can't just unlink() it // let's make sure the path doesn't exist before we try to use it } while (pathExists(oldPath));