[file-roller/gnome-3-10] 7zip: specify the password when deleting and the header is encrypted



commit 75669c2d998d1246e54fea71317e3a607384ae61
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]