mu/lib: fix some possible quoting issues

This commit is contained in:
Dirk-Jan C. Binnema
2026-03-07 15:49:44 +02:00
committed by Seth Ladygo
parent 5e9cdc6654
commit 45b9722040
4 changed files with 21 additions and 12 deletions

View File

@ -116,8 +116,7 @@ exec_cmd(const Option<Message>& msg, const OutputInfo& info, const Options& opts
int wait_status{};
GError *err{};
auto cmdline{mu_format("{} {}", opts.find.exec,
to_string_gchar(g_shell_quote(msg->path().c_str())))};
auto cmdline{mu_format("{} {}", opts.find.exec, shell_quote(msg->path()))};
if (!g_spawn_command_line_sync(cmdline.c_str(), {}, {}, &wait_status, &err))
return Err(Error::Code::File, &err/*consumed*/,