summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-06-07 15:09:47 +0200
committerinfirit <[email protected]>2014-07-11 14:39:14 +0200
commit2e4c45a62bea09cb496804febae40aa66361835b (patch)
treec1f91df7cecb4dbe5cf62f2bd374516d0178216b
parenta899234f14fde51febf2f2e8b848b0b334640f7c (diff)
downloadengrampa-2e4c45a62bea09cb496804febae40aa66361835b.tar.bz2
engrampa-2e4c45a62bea09cb496804febae40aa66361835b.tar.xz
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
-rw-r--r--src/fr-command-unarchiver.c5
1 files 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;