diff options
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r-- | src/libstore/local-store.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index aca98412ae16..1293a6e8f260 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -243,8 +243,7 @@ LocalStore::LocalStore(bool reserveSpace) Path gcRootsDir = settings.nixStateDir + "/gcroots"; if (!pathExists(gcRootsDir)) { createDirs(gcRootsDir); - if (symlink(profilesDir.c_str(), (gcRootsDir + "/profiles").c_str()) == -1) - throw SysError(format("creating symlink to `%1%'") % profilesDir); + createSymlink(profilesDir, gcRootsDir + "/profiles"); } checkStoreNotSymlink(); |