fix escaping of file in helper run in 1 missed case

this fixes T814
This commit is contained in:
Carsten Haitzler 2014-01-22 15:44:57 +09:00
parent aef172b4c5
commit 4891932444
1 changed files with 8 additions and 3 deletions

View File

@ -740,10 +740,15 @@ _smart_media_clicked(void *data, Evas_Object *obj, void *info EINA_UNUSED)
cmd = config->helper.local.general;
if (cmd)
{
char buf[PATH_MAX];
char buf[PATH_MAX], *escaped;
snprintf(buf, sizeof(buf), "%s %s", cmd, file);
ecore_exe_run(buf, NULL);
escaped = ecore_file_escape_name(file);
if (escaped)
{
snprintf(buf, sizeof(buf), "%s %s", cmd, escaped);
ecore_exe_run(buf, NULL);
free(escaped);
}
return;
}
}