summaryrefslogtreecommitdiff
path: root/mu/mu-cmd-find.cc
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2026-03-07 15:49:44 +0200
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2026-04-17 23:41:21 +0300
commit83c4dc641dfc5bd07bbdbfe53c663f97533f17af (patch)
treeb0a77d0191d4d08c42c504f27efcd767f2a6d944 /mu/mu-cmd-find.cc
parentc38519da7bd43f9cfe359d6547a2a682bdb08b9a (diff)
mu/lib: fix some possible quoting issues
Diffstat (limited to 'mu/mu-cmd-find.cc')
-rw-r--r--mu/mu-cmd-find.cc3
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*/,