From 8a27e3d6575fac37a1970fd77ce3a99e2a59b173 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: I6a6a69641a3b4e6fdd076faac44dc314e6cc057e --- 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 e75e5fb5c..cf56eb773 100644 --- a/lix/libstore/build/derivation-goal.cc +++ b/lix/libstore/build/derivation-goal.cc @@ -886,7 +886,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));