aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/local-store.cc
diff options
context:
space:
mode:
authorMarwan Aljubeh <marwan.aljubeh@gmail.com>2020-09-18 17:10:39 +0100
committerMarwan Aljubeh <marwan.aljubeh@gmail.com>2020-09-18 17:10:39 +0100
commitc00e07834327a8ef626cf4f1ecb216ee1b6a0877 (patch)
treed372f02dd87a19296cfdcc0c38cda3202956ac38 /src/libstore/local-store.cc
parent958bf5712377f59622c59f05a84641aa1093fd32 (diff)
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 c618203f0..24b9ea7bd 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -109,7 +109,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.ignoreSymlinkStore) {
Path path = realStoreDir;
struct stat st;
while (path != "/") {