Comment 1 for bug 464324

Revision history for this message
lavinog (lavinog) wrote :

One possible solution:
fr-command-7z.c:
Original:
--------------
if (is_mime_type (comm->mime_type, "application/zip"))
  fr_process_add_arg (comm->process, "-tzip");

 fr_process_add_arg (comm->process, "-bd");
 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)
  fr_process_add_arg (comm->process, "-mhe=on");
--------------

Change:
--------------
 fr_process_add_arg (comm->process, "-bd");
 fr_process_add_arg (comm->process, "-y");
 fr_process_add_arg (comm->process, "-l");
 add_password_arg (comm, comm->password, FALSE);

if (is_mime_type (comm->mime_type, "application/zip"))
  fr_process_add_arg (comm->process, "-tzip");
else
 if ((comm->password != NULL) && (*comm->password != 0) && comm->encrypt_header)
  fr_process_add_arg (comm->process, "-mhe=on");
--------------