Browse Source

disallow spaces in datadir path

v0.25
pbca26 7 years ago
parent
commit
4668a94ba9
  1. 5
      routes/shepherd.js

5
routes/shepherd.js

@ -2851,6 +2851,10 @@ shepherd.testBins = function(daemonName) {
// komodod datadir location test
shepherd.testLocation = function(path) {
return new Promise(function(resolve, reject) {
if (path.indexOf(' ') > -1) {
shepherd.log(`error testing path ${path}`);
resolve(-1);
} else {
fs.lstat(path, (err, stats) => {
if (err) {
shepherd.log(`error testing path ${path}`);
@ -2864,6 +2868,7 @@ shepherd.testLocation = function(path) {
}
}
});
}
});
}

Loading…
Cancel
Save