summaryrefslogtreecommitdiff
path: root/libre/xarchiver-libre/xarchiver-0.5.3-fix-double-escaping.patch
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-02-20 05:17:36 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-02-20 05:17:36 -0200
commit7dc82889a77f38450a1116363d91d085b307e009 (patch)
treec9f324c500328c7258fb05de8d9fe0c8d8d3cba6 /libre/xarchiver-libre/xarchiver-0.5.3-fix-double-escaping.patch
parentf0078a2177e50f86f41a79a328249ddcd584a3c8 (diff)
downloadabslibre-7dc82889a77f38450a1116363d91d085b307e009.tar.gz
abslibre-7dc82889a77f38450a1116363d91d085b307e009.tar.bz2
abslibre-7dc82889a77f38450a1116363d91d085b307e009.zip
xarchiver-libre-0.5.3-1: updating version
Diffstat (limited to 'libre/xarchiver-libre/xarchiver-0.5.3-fix-double-escaping.patch')
-rw-r--r--libre/xarchiver-libre/xarchiver-0.5.3-fix-double-escaping.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/libre/xarchiver-libre/xarchiver-0.5.3-fix-double-escaping.patch b/libre/xarchiver-libre/xarchiver-0.5.3-fix-double-escaping.patch
new file mode 100644
index 000000000..8b44d91a0
--- /dev/null
+++ b/libre/xarchiver-libre/xarchiver-0.5.3-fix-double-escaping.patch
@@ -0,0 +1,32 @@
+From: =?UTF-8?q?Guido=20Berh=C3=B6rster?= <gber@opensuse.org>
+Date: Sat, 19 Jan 2013 09:27:36 +0100
+Subject: fix-double-escaping
+
+Do not escape file names twice. Fixes an error when trying to create archives
+with spaces.
+
+Bug: http://bugs.debian.org/697493.
+---
+ src/main.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/main.c b/src/main.c
+index a13d737..a6a7f93 100644
+--- a/src/main.c
++++ b/src/main.c
+@@ -208,13 +208,13 @@ int main (int argc, char **argv)
+ g_free(_current_dir);
+ GSList *files = NULL;
+ _current_dir = g_path_get_basename(add_files);
+- files = g_slist_append(files,xa_escape_filename(_current_dir,"$'`\"\\!?* ()[]&|:;<>#"));
++ files = g_slist_append(files,g_strdup(_current_dir));
+ g_free(_current_dir);
+ g_free(add_files);
+ for (x = 1; x< argc; x++)
+ {
+ _current_dir = g_path_get_basename(argv[x]);
+- files = g_slist_append(files,xa_escape_filename(_current_dir,"$'`\"\\!?* ()[]&|:;<>#"));
++ files = g_slist_append(files,g_strdup(_current_dir));
+ g_free (_current_dir);
+ }
+ xa_execute_add_commands(archive,files,NULL);