From d3122a8927c8cf8fcbdc2fc8ec9bab102cdb3176 Mon Sep 17 00:00:00 2001 From: djcb Date: Wed, 14 May 2014 22:57:57 -0700 Subject: [PATCH] * mu: shell-quote rather than escape with --exec --- mu/mu-cmd-find.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mu/mu-cmd-find.c b/mu/mu-cmd-find.c index 6bdd1806..8516d292 100644 --- a/mu/mu-cmd-find.c +++ b/mu/mu-cmd-find.c @@ -144,7 +144,7 @@ exec_cmd (MuMsg *msg, MuMsgIter *iter, MuConfig *opts, GError **err) char *cmdline, *escpath; gboolean rv; - escpath = g_strescape (mu_msg_get_path (msg), NULL); + escpath = g_shell_quote (mu_msg_get_path (msg)); cmdline = g_strdup_printf ("%s %s", opts->exec, escpath); rv = g_spawn_command_line_sync (cmdline, NULL, NULL, &status, err);