[file-roller] 7zip: specify the password when deleting and the header is encrypted
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] 7zip: specify the password when deleting and the header is encrypted
- Date: Tue, 3 Dec 2013 10:03:13 +0000 (UTC)
commit 5f8c078289c628619b09282637443a0410904ce3
Author: Paolo Bacchilega <paobac src gnome org>
Date: Tue Dec 3 11:00:44 2013 +0100
7zip: specify the password when deleting and the header is encrypted
src/fr-command-7z.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
index a9d15fd..809717f 100644
--- a/src/fr-command-7z.c
+++ b/src/fr-command-7z.c
@@ -424,6 +424,12 @@ fr_command_7z_delete (FrCommand *command,
if (g_str_has_prefix (scan->data, "@"))
fr_process_add_arg_concat (command->process, "-i!", scan->data, NULL);
+ if (archive->encrypt_header
+ && fr_archive_is_capable_of (archive, FR_ARCHIVE_CAN_ENCRYPT_HEADER))
+ {
+ add_password_arg (command, FR_ARCHIVE (command)->password, FALSE);
+ }
+
fr_process_add_arg (command->process, "--");
fr_process_add_arg (command->process, command->filename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]