Fixed the filename escaping issues.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2012-06-13 12:23:19 +03:00
parent f2613ea2a6
commit 614d7f6a08

View File

@ -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);
}