[file-roller] fixed error when creating zip archives with files starting with an hyphen
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] fixed error when creating zip archives with files starting with an hyphen
- Date: Mon, 17 Jan 2011 10:04:35 +0000 (UTC)
commit db930e241d450a068e25a9cecb175ea96f787375
Author: Dmitri Bachtin <d bachtin gmail com>
Date: Mon Jan 17 10:52:59 2011 +0100
fixed error when creating zip archives with files starting with an hyphen
[bug #639664]
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 b2157f2..32c4410 100644
--- a/src/fr-command-zip.c
+++ b/src/fr-command-zip.c
@@ -252,6 +252,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);
@@ -274,6 +275,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;
@@ -318,6 +320,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]