Use double-quoting of commands in Windows.

This commit is contained in:
Alexander Shaduri
2024-05-17 16:56:44 +04:00
parent debe2e63cb
commit 501134c2fd
7 changed files with 30 additions and 10 deletions
+2 -2
View File
@@ -115,9 +115,9 @@ hz::ExpectedVoid<SmartctlExecutorError> execute_smartctl(const std::string& devi
device_specific_options += " ";
smartctl_ex->set_command(Glib::shell_quote(hz::fs_path_to_string(smartctl_binary)),
smartctl_ex->set_command(CommandExecutor::shell_quote(hz::fs_path_to_string(smartctl_binary)),
smartctl_def_options + device_specific_options + command_options
+ " " + Glib::shell_quote(device));
+ " " + CommandExecutor::shell_quote(device));
if (!smartctl_ex->execute() || !smartctl_ex->get_error_msg().empty()) {
debug_out_warn("app", DBG_FUNC_MSG << "Smartctl binary did not execute cleanly.\n");