Mageia Bugzilla – Attachment 1410 Details for
Bug 4093
REGRESSION : Xarchiver drag&drop doesn't work correctly when dropping to directory containing spaces
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
xarchiver-0.5.2-drag-n-drop_escaped_path.patch
xarchiver-0.5.2-drag-n-drop_escaped_path.patch (text/plain), 780 bytes, created by
JaromÃr CápÃk
on 2012-01-23 20:17:38 CET
(
hide
)
Description:
xarchiver-0.5.2-drag-n-drop_escaped_path.patch
Filename:
MIME Type:
Creator:
JaromÃr CápÃk
Created:
2012-01-23 20:17:38 CET
Size:
780 bytes
patch
obsolete
>diff -Naur xarchiver-0.5.2.orig/src/window.c xarchiver-0.5.2/src/window.c >--- xarchiver-0.5.2.orig/src/window.c 2012-01-12 13:28:54.000000000 +0100 >+++ xarchiver-0.5.2/src/window.c 2012-01-23 20:11:20.550285976 +0100 >@@ -1724,6 +1724,7 @@ > gtk_tree_selection_selected_foreach (selection,(GtkTreeSelectionForeachFunc) xa_concat_selected_filenames,&names); > archive->full_path = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (extract_window->extract_full)); > archive->overwrite = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (extract_window->overwrite_check)); >+ archive->extraction_path = xa_escape_filename(archive->extraction_path, "$'`\"\\!?* ()[]&|:;<>#"); > (*archive->extract) (archive,names); > > g_list_foreach (row_list,(GFunc) gtk_tree_path_free,NULL);
diff -Naur xarchiver-0.5.2.orig/src/window.c xarchiver-0.5.2/src/window.c --- xarchiver-0.5.2.orig/src/window.c 2012-01-12 13:28:54.000000000 +0100 +++ xarchiver-0.5.2/src/window.c 2012-01-23 20:11:20.550285976 +0100 @@ -1724,6 +1724,7 @@ gtk_tree_selection_selected_foreach (selection,(GtkTreeSelectionForeachFunc) xa_concat_selected_filenames,&names); archive->full_path = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (extract_window->extract_full)); archive->overwrite = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (extract_window->overwrite_check)); + archive->extraction_path = xa_escape_filename(archive->extraction_path, "$'`\"\\!?* ()[]&|:;<>#"); (*archive->extract) (archive,names); g_list_foreach (row_list,(GFunc) gtk_tree_path_free,NULL);
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 4093
:
1409
|
1410
|
1411