From 383d22b8dc070377508d66a1750cb1f4da71e4aa Mon Sep 17 00:00:00 2001 From: infirit Date: Sat, 7 Jun 2014 15:09:47 +0200 Subject: Can't open file inside a .rar archive (with unar) From file-roller commit a830397ab745bdfe2659f214b5384dc7ef5c76cf url: https://git.gnome.org/browse/file-roller/commit/?id=a830397ab745bdfe2659f214b5384dc7ef5c76cf This commit fixes engrampa issue #55 --- src/fr-command-unarchiver.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/fr-command-unarchiver.c b/src/fr-command-unarchiver.c index 3e32f25..d13f468 100644 --- a/src/fr-command-unarchiver.c +++ b/src/fr-command-unarchiver.c @@ -199,8 +199,7 @@ fr_command_unarchiver_extract (FrCommand *comm, else fr_process_add_arg (comm->process, "-s"); - if (junk_paths) - fr_process_add_arg (comm->process, "-D"); + fr_process_add_arg (comm->process, "-D"); if ((comm->password != NULL) && (comm->password[0] != '\0')) fr_process_add_arg_concat (comm->process, "-password=", comm->password, NULL); @@ -306,7 +305,7 @@ fr_command_unarchiver_init (FrCommand *comm) comm->propExtractCanAvoidOverwrite = TRUE; comm->propExtractCanSkipOlder = FALSE; - comm->propExtractCanJunkPaths = TRUE; + comm->propExtractCanJunkPaths = FALSE; comm->propPassword = TRUE; comm->propTest = FALSE; comm->propListFromFile = FALSE; -- cgit v1.2.1