mirror of
https://github.com/NixOS/nix
synced 2025-06-24 09:41:15 +02:00
Merge pull request #13368 from wolfgangwalther/race-state-creation
libstore: fix race condition when creating state directories
This commit is contained in:
commit
bb32fcdf30
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ LocalStore::LocalStore(ref<const Config> config)
|
|||
Path gcRootsDir = config->stateDir + "/gcroots";
|
||||
if (!pathExists(gcRootsDir)) {
|
||||
createDirs(gcRootsDir);
|
||||
createSymlink(profilesDir, gcRootsDir + "/profiles");
|
||||
replaceSymlink(profilesDir, gcRootsDir + "/profiles");
|
||||
}
|
||||
|
||||
for (auto & perUserDir : {profilesDir + "/per-user", gcRootsDir + "/per-user"}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue