mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Call getDefaultSSLCertFile() only when none is specified
This does pathExists on various paths, which crashes on EPERM in the macOS sandbox.
This commit is contained in:
parent
be48907470
commit
b7cde90c6b
2 changed files with 3 additions and 1 deletions
|
@ -57,6 +57,8 @@ Settings::Settings()
|
|||
auto sslOverride = getEnv("NIX_SSL_CERT_FILE").value_or(getEnv("SSL_CERT_FILE").value_or(""));
|
||||
if (sslOverride != "")
|
||||
caFile = sslOverride;
|
||||
else if (caFile == "")
|
||||
caFile = getDefaultSSLCertFile();
|
||||
|
||||
/* Backwards compatibility. */
|
||||
auto s = getEnv("NIX_REMOTE_SYSTEMS");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue