[file-roller/gnome-2-28] check whether the file type supports header encryption
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [file-roller/gnome-2-28] check whether the file type supports header encryption
- Date: Fri, 30 Oct 2009 17:47:54 +0000 (UTC)
commit 79b97991c3a0806ae965f6d4221ee2e0c619c477
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Oct 30 18:42:38 2009 +0100
check whether the file type supports header encryption
do use the header enprytion flags if the file type does not
support it.
[bug #600131]
src/fr-command-7z.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
index ecc6f8c..1223168 100644
--- a/src/fr-command-7z.c
+++ b/src/fr-command-7z.c
@@ -331,8 +331,13 @@ fr_command_7z_add (FrCommand *comm,
fr_process_add_arg (comm->process, "-y");
fr_process_add_arg (comm->process, "-l");
add_password_arg (comm, comm->password, FALSE);
- if ((comm->password != NULL) && (*comm->password != 0) && comm->encrypt_header)
+ if ((comm->password != NULL)
+ && (*comm->password != 0)
+ && comm->encrypt_header
+ && fr_command_is_capable_of (comm, FR_COMMAND_CAN_ENCRYPT_HEADER))
+ {
fr_process_add_arg (comm->process, "-mhe=on");
+ }
/* fr_process_add_arg (comm->process, "-ms=off"); FIXME: solid mode off? */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]