mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
Fixed the filename escaping issues.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
f2613ea2a6
commit
614d7f6a08
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user