diff options
author | Sergiusz Bazanski <q3k@q3k.org> | 2017-10-04 01:28:45 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-10-06 20:55:18 +0800 |
commit | 71a819654e3c46aee92b831b835887ea200944f0 (patch) | |
tree | fc954cee357dcb6de1aa017070357efde04dc116 | |
parent | 094012dbb046655ac0291f6c4632f306406c0ada (diff) | |
download | dexon-solidity-71a819654e3c46aee92b831b835887ea200944f0.tar dexon-solidity-71a819654e3c46aee92b831b835887ea200944f0.tar.gz dexon-solidity-71a819654e3c46aee92b831b835887ea200944f0.tar.bz2 dexon-solidity-71a819654e3c46aee92b831b835887ea200944f0.tar.lz dexon-solidity-71a819654e3c46aee92b831b835887ea200944f0.tar.xz dexon-solidity-71a819654e3c46aee92b831b835887ea200944f0.tar.zst dexon-solidity-71a819654e3c46aee92b831b835887ea200944f0.zip |
Allow trailing slash in solc -allow-paths.
-rw-r--r-- | solc/CommandLineInterface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index 271511d4..36fcc1a4 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -717,7 +717,7 @@ bool CommandLineInterface::processInput() { vector<string> paths; for (string const& path: boost::split(paths, m_args[g_argAllowPaths].as<string>(), boost::is_any_of(","))) - m_allowedDirectories.push_back(boost::filesystem::path(path)); + m_allowedDirectories.push_back(boost::filesystem::path(path).remove_trailing_separator()); } if (m_args.count(g_argStandardJSON)) |