summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2013-11-11 21:30:02 +0100
committerinfirit <[email protected]>2013-12-17 15:29:54 +0100
commit45deb61cce3acdf82b466a83013bbd72b30c1df9 (patch)
tree286ed098271517f42ec6bd79724b14007ce9ac59
parent81dd8eb1c1f8e0e04e1ce7c79c57b55b75620820 (diff)
downloadengrampa-45deb61cce3acdf82b466a83013bbd72b30c1df9.tar.bz2
engrampa-45deb61cce3acdf82b466a83013bbd72b30c1df9.tar.xz
zip: fixed -- position for the extraction command, added for list and test
-rw-r--r--src/fr-command-zip.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fr-command-zip.c b/src/fr-command-zip.c
index aa2b9fc..2aa332e 100644
--- a/src/fr-command-zip.c
+++ b/src/fr-command-zip.c
@@ -190,6 +190,7 @@ fr_command_zip_list (FrCommand *comm)
fr_process_begin_command (comm->process, "unzip");
fr_process_set_begin_func (comm->process, list__begin, comm);
fr_process_add_arg (comm->process, "-ZTs");
+ fr_process_add_arg (comm->process, "--");
fr_process_add_arg (comm->process, comm->filename);
fr_process_end_command (comm->process);
fr_process_start (comm->process);
@@ -254,6 +255,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);
@@ -277,6 +279,7 @@ fr_command_zip_delete (FrCommand *comm,
fr_process_add_arg (comm->process, comm->filename);
fr_process_add_arg (comm->process, "--");
+
for (scan = file_list; scan; scan = scan->next) {
char *escaped;
@@ -322,6 +325,7 @@ fr_command_zip_extract (FrCommand *comm,
fr_process_add_arg (comm->process, comm->filename);
fr_process_add_arg (comm->process, "--");
+
for (scan = file_list; scan; scan = scan->next) {
char *escaped;
@@ -340,6 +344,7 @@ fr_command_zip_test (FrCommand *comm)
fr_process_begin_command (comm->process, "unzip");
fr_process_add_arg (comm->process, "-t");
add_password_arg (comm, comm->password);
+ fr_process_add_arg (comm->process, "--");
fr_process_add_arg (comm->process, comm->filename);
fr_process_end_command (comm->process);
}