mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
extensions: Fix path quotes on Windows (#3965)
This commit is contained in:
parent
bfb4061f39
commit
ee17e7e6f0
@ -251,7 +251,7 @@ std::shared_ptr<PlatformProcess> PlatformProcess::launchExtension(
|
||||
// To prevent errant double quotes from altering the intended arguments for
|
||||
// argv, we strip them out completely.
|
||||
std::stringstream argv_stream;
|
||||
argv_stream << boost::replace_all_copy(exec_path, "\"", "") << "\" ";
|
||||
argv_stream << "\"" << boost::replace_all_copy(exec_path, "\"", "") << "\" ";
|
||||
if (verbose) {
|
||||
argv_stream << "--verbose ";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user