aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/local-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-09-22 13:19:22 +0200
committerGitHub <noreply@github.com>2020-09-22 13:19:22 +0200
commit5b107f2c5f5bb86042f9f65b022cf0ed0bfaccbd (patch)
tree6d51cd7a13ff30599d1087d01ff89fe7d8e1ba8f /src/libstore/local-store.cc
parent35a0ac183858ecb03e313e088562c84fe211e20d (diff)
parentf80ffeb8c9291f7168f098fdaadc15408492f3c2 (diff)
Merge pull request #4038 from maljub01/master
Add a nix.conf option for allowing a symlinked store
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r--src/libstore/local-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 94ff34cb8..c91f3fbf7 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -110,7 +110,7 @@ LocalStore::LocalStore(const Params & params)
}
/* Ensure that the store and its parents are not symlinks. */
- if (getEnv("NIX_IGNORE_SYMLINK_STORE") != "1") {
+ if (!settings.allowSymlinkedStore) {
Path path = realStoreDir;
struct stat st;
while (path != "/") {