From e52130ef2916977633d9967909df4d32f32b7e64 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 26 Jan 2017 01:03:58 -0800 Subject: [PATCH] config: fix path handling. --- lib/node/config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/node/config.js b/lib/node/config.js index 4d0f8f7d..41fb90a3 100644 --- a/lib/node/config.js +++ b/lib/node/config.js @@ -231,7 +231,7 @@ config.toOptions = function toOptions(data) { options.sigcacheSize = num(data.sigcachesize); // Node - options.prefix = path(prefix, prefix); + options.prefix = path(prefix); options.db = str(data.db); options.maxFiles = num(data.maxfiles); options.cacheSize = mul(data.cachesize, 1024 * 1024); @@ -738,7 +738,8 @@ function path(value, prefix) { value = util.HOME + value.substring(1); break; case '@': // prefix - value = prefix + value.substring(1); + if (prefix) + value = prefix + value.substring(1); break; default: // cwd break;