about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-09-22T13·59+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-09-22T13·59+0200
commit4bd51d74af34cc0014cd1b2dd0dd105e379e9770 (patch)
tree9e5232ebbc73abbc66db42ffbeea46aeab3908e5
parentbbe2811a106b61aed1c69033ddcb29a175133bdc (diff)
Handle the case where signed-binary-caches consists of whitespace
-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 d2360a9c5836..7cd84d03d4a8 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -44,7 +44,7 @@ LocalStore::LocalStore(const Params & params)
     , reservedPath(dbDir + "/reserved")
     , schemaPath(dbDir + "/schema")
     , trashDir(realStoreDir + "/trash")
-    , requireSigs(settings.get("signed-binary-caches", std::string("")) != "") // FIXME: rename option
+    , requireSigs(trim(settings.get("signed-binary-caches", std::string(""))) != "") // FIXME: rename option
     , publicKeys(getDefaultPublicKeys())
 {
     auto state(_state.lock());