From 614d7f6a08b8ad7f30a3a32b260e3871aa091bb5 Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Wed, 13 Jun 2012 12:23:19 +0300 Subject: [PATCH] Fixed the filename escaping issues. Signed-off-by: Slava Zanko --- src/filemanager/ext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filemanager/ext.c b/src/filemanager/ext.c index 2fba1ad8e..3b6d76a6a 100644 --- a/src/filemanager/ext.c +++ b/src/filemanager/ext.c @@ -169,7 +169,7 @@ exec_get_export_variables (vfs_path_t * filename_vpath) return NULL; export_vars_string = g_string_new ("MC_EXT_FILENAME="); - g_string_append_printf (export_vars_string, "\"%s\"\nexport MC_EXT_FILENAME\n", text); + g_string_append_printf (export_vars_string, "%s\nexport MC_EXT_FILENAME\n", text); g_free (text); for (i = 0; export_variables[i].name != NULL; i++) @@ -178,7 +178,7 @@ exec_get_export_variables (vfs_path_t * filename_vpath) if (text != NULL) { g_string_append_printf (export_vars_string, - "%s=\"%s\"\nexport %s\n", export_variables[i].name, text, + "%s=%s\nexport %s\n", export_variables[i].name, text, export_variables[i].name); g_free (text); }