From 949e910102a7f10b4793009776603e79e2d27b43 Mon Sep 17 00:00:00 2001 From: Gonzalo Paniagua Javier Date: Wed, 15 Jun 2011 15:34:25 -0400 Subject: [PATCH] Fix crash when there's a \' in the arguments. Fixes crash when calling Process.Start on a file with a ' in the path when UseShellExecute is set to false. Patch by Tom Philpot. --- eglib/src/gshell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eglib/src/gshell.c b/eglib/src/gshell.c index f24c70ae5be9d..43b4c17870c5a 100644 --- a/eglib/src/gshell.c +++ b/eglib/src/gshell.c @@ -225,7 +225,7 @@ g_shell_unquote (const gchar *quoted_string, GError **error) } } else if (*p == '\\'){ char c = *(++p); - if (!(c == '$' || c == '"' || c == '\\' || c == '`' || c == 0)) + if (!(c == '$' || c == '"' || c == '\\' || c == '`' || c == '\'' || c == 0 )) g_string_append_c (result, '\\'); if (c == 0) break;