summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2013-11-11 21:11:35 +0100
committerraveit65 <[email protected]>2013-11-11 21:15:57 +0100
commit25402a6a9c66fb827490e72430082740ab89bfc0 (patch)
tree2301a14e4c1e6c0e6e20b10de207799d81f4b325
parent36aefd0601529725931abbf7280684c1efdc3f34 (diff)
downloadengrampa-25402a6a9c66fb827490e72430082740ab89bfc0.tar.bz2
engrampa-25402a6a9c66fb827490e72430082740ab89bfc0.tar.xz
fixed error when creating zip archives with files starting with an hyphen
-rw-r--r--src/fr-command-zip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fr-command-zip.c b/src/fr-command-zip.c
index 8c51bef..aa2b9fc 100644
--- a/src/fr-command-zip.c
+++ b/src/fr-command-zip.c
@@ -253,6 +253,7 @@ fr_command_zip_add (FrCommand *comm,
}
fr_process_add_arg (comm->process, comm->filename);
+ fr_process_add_arg (comm->process, "--");
for (scan = file_list; scan; scan = scan->next)
fr_process_add_arg (comm->process, scan->data);
@@ -275,6 +276,7 @@ fr_command_zip_delete (FrCommand *comm,
fr_process_add_arg (comm->process, "-d");
fr_process_add_arg (comm->process, comm->filename);
+ fr_process_add_arg (comm->process, "--");
for (scan = file_list; scan; scan = scan->next) {
char *escaped;
@@ -319,6 +321,7 @@ fr_command_zip_extract (FrCommand *comm,
add_password_arg (comm, comm->password);
fr_process_add_arg (comm->process, comm->filename);
+ fr_process_add_arg (comm->process, "--");
for (scan = file_list; scan; scan = scan->next) {
char *escaped;