From 71a819654e3c46aee92b831b835887ea200944f0 Mon Sep 17 00:00:00 2001 From: Sergiusz Bazanski Date: Tue, 3 Oct 2017 18:28:45 +0100 Subject: Allow trailing slash in solc -allow-paths. --- solc/CommandLineInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'solc') 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 paths; for (string const& path: boost::split(paths, m_args[g_argAllowPaths].as(), 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)) -- cgit v1.2.3