From bb024c69353cd34145c72d3a64fc94604e0407ce Mon Sep 17 00:00:00 2001 From: Sergey Semushin Date: Thu, 26 May 2022 19:46:36 +0300 Subject: [PATCH] fix(win32execute): Handle space in paths when using response file (#1080) --- src/execute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/execute.cpp b/src/execute.cpp index 2355c622f..801349b83 100644 --- a/src/execute.cpp +++ b/src/execute.cpp @@ -149,7 +149,7 @@ win32execute(const char* path, TemporaryFile tmp_file(FMT("{}/cmd_args", temp_dir)); args = Win32Util::argv_to_string(argv + 1, sh, true); Util::write_fd(*tmp_file.fd, args.data(), args.length()); - args = FMT("{} @{}", full_path, tmp_file.path); + args = FMT(R"("{}" "@{}")", full_path, tmp_file.path); tmp_file_path = tmp_file.path; LOG("Arguments from {}", tmp_file.path); } -- 2.47.3