diff options
author | Stefano Karapetsas <[email protected]> | 2014-01-15 00:38:40 -0800 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-01-15 00:38:40 -0800 |
commit | dbbb0a62cbd8156ece72fde93fd051318df13932 (patch) | |
tree | 286ed098271517f42ec6bd79724b14007ce9ac59 /src/fr-command-zip.c | |
parent | 325e6e485a88efeee316f633ae3dfeed1be45ceb (diff) | |
parent | 45deb61cce3acdf82b466a83013bbd72b30c1df9 (diff) | |
download | engrampa-dbbb0a62cbd8156ece72fde93fd051318df13932.tar.bz2 engrampa-dbbb0a62cbd8156ece72fde93fd051318df13932.tar.xz |
Merge pull request #38 from infirit/1.6
Cherrypick dome more usefull commits from master
Diffstat (limited to 'src/fr-command-zip.c')
-rw-r--r-- | src/fr-command-zip.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fr-command-zip.c b/src/fr-command-zip.c index 8c51bef..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); @@ -253,6 +254,8 @@ 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 +278,8 @@ 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 +324,8 @@ 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; @@ -337,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); } |