--- file-roller-2.14.2.original/nautilus/nautilus-fileroller.c 2006-04-28 19:46:13.000000000 +0300 +++ file-roller-2.14.2/nautilus/nautilus-fileroller.c 2006-04-28 19:56:28.000000000 +0300 @@ -58,9 +58,9 @@ NULL); cmd = g_string_new ("file-roller"); g_string_append_printf (cmd, - " --default-dir=\"%s\" --extract \"%s\"", - default_dir, - path); + " --default-dir=%s --extract %s", + g_shell_quote(default_dir), + g_shell_quote(path)); #ifdef DEBUG g_print ("EXEC: %s\n", cmd->str); @@ -92,7 +92,7 @@ dir = g_path_get_dirname (path); cmd = g_string_new ("file-roller"); - g_string_append_printf (cmd," --extract-to=\"%s\" --force", dir); + g_string_append_printf (cmd," --extract-to=%s --force", g_shell_quote(dir)); g_free (dir); g_free (path); @@ -104,7 +104,7 @@ uri = nautilus_file_info_get_uri (file); path = gnome_vfs_get_local_path_from_uri (uri); - g_string_append_printf (cmd, " \"%s\"", path); + g_string_append_printf (cmd, " %s", g_shell_quote(path)); g_free (path); g_free (uri); @@ -133,7 +133,7 @@ dir = g_path_get_dirname (path); cmd = g_string_new ("file-roller"); - g_string_append_printf (cmd," --default-dir=\"%s\" --add", dir); + g_string_append_printf (cmd," --default-dir=%s --add", g_shell_quote(dir)); g_free (dir); g_free (path); @@ -145,7 +145,7 @@ uri = nautilus_file_info_get_uri (file); path = gnome_vfs_get_local_path_from_uri (uri); - g_string_append_printf (cmd, " \"%s\"", path); + g_string_append_printf (cmd, " %s", g_shell_quote(path)); g_free (path); g_free (uri);