diff options
author | raveit65 <[email protected]> | 2013-11-11 21:11:35 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2013-12-17 15:29:54 +0100 |
commit | 81dd8eb1c1f8e0e04e1ce7c79c57b55b75620820 (patch) | |
tree | 0beb627fa75f2dbfcbc0a88fe0ecb5f42d41d145 | |
parent | b7f9eb68d8b26692889cbaf125873ea043382de6 (diff) | |
download | engrampa-81dd8eb1c1f8e0e04e1ce7c79c57b55b75620820.tar.bz2 engrampa-81dd8eb1c1f8e0e04e1ce7c79c57b55b75620820.tar.xz |
fixed error when creating zip archives with files starting with an hyphen
-rw-r--r-- | src/fr-command-zip.c | 3 |
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; |