From: Sergey Semushin Date: Thu, 26 May 2022 16:46:36 +0000 (+0300) Subject: fix(win32execute): Handle space in paths when using response file (#1080) X-Git-Tag: v4.7~218 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb024c69353cd34145c72d3a64fc94604e0407ce;p=thirdparty%2Fccache.git fix(win32execute): Handle space in paths when using response file (#1080) --- 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); }