Update the variable name accordingly

This commit is contained in:
Marwan Aljubeh 2020-09-21 17:29:08 +01:00
parent 4e1a04733d
commit f80ffeb8c9
3 changed files with 3 additions and 3 deletions

View file

@ -41,7 +41,7 @@ Settings::Settings()
{
buildUsersGroup = getuid() == 0 ? "nixbld" : "";
lockCPU = getEnv("NIX_AFFINITY_HACK") == "1";
ignoreSymlinkStore = getEnv("NIX_IGNORE_SYMLINK_STORE") == "1";
allowSymlinkedStore = getEnv("NIX_IGNORE_SYMLINK_STORE") == "1";
caFile = getEnv("NIX_SSL_CERT_FILE").value_or(getEnv("SSL_CERT_FILE").value_or(""));
if (caFile == "") {

View file

@ -882,7 +882,7 @@ public:
Setting<std::string> flakeRegistry{this, "https://github.com/NixOS/flake-registry/raw/master/flake-registry.json", "flake-registry",
"Path or URI of the global flake registry."};
Setting<bool> ignoreSymlinkStore{
Setting<bool> allowSymlinkedStore{
this, false, "allow-symlinked-store",
R"(
If set to `true`, Nix will stop complaining if the store directory

View file

@ -109,7 +109,7 @@ LocalStore::LocalStore(const Params & params)
}
/* Ensure that the store and its parents are not symlinks. */
if (!settings.ignoreSymlinkStore) {
if (!settings.allowSymlinkedStore) {
Path path = realStoreDir;
struct stat st;
while (path != "/") {