diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2026-03-07 15:49:44 +0200 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2026-04-17 23:41:21 +0300 |
| commit | 83c4dc641dfc5bd07bbdbfe53c663f97533f17af (patch) | |
| tree | b0a77d0191d4d08c42c504f27efcd767f2a6d944 /mu/mu-cmd-find.cc | |
| parent | c38519da7bd43f9cfe359d6547a2a682bdb08b9a (diff) | |
mu/lib: fix some possible quoting issues
Diffstat (limited to 'mu/mu-cmd-find.cc')
| -rw-r--r-- | mu/mu-cmd-find.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mu/mu-cmd-find.cc b/mu/mu-cmd-find.cc index d4c7e17..a85bdc8 100644 --- a/mu/mu-cmd-find.cc +++ b/mu/mu-cmd-find.cc @@ -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*/, |
