summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Zesch <[email protected]>2012-11-17 16:10:32 -0500
committerSteve Zesch <[email protected]>2012-11-17 16:57:53 -0500
commite8c9900b85acc467ea38d093047e8d169f026e22 (patch)
tree4f1bebaad29134c8664b9f140a8e536d9eedb73a
parent8f8784ba4ebcd8eb099c4e119a9a8d5a349efd61 (diff)
downloadengrampa-e8c9900b85acc467ea38d093047e8d169f026e22.tar.bz2
engrampa-e8c9900b85acc467ea38d093047e8d169f026e22.tar.xz
Can't open rar files with password protected file data and headers.
-rw-r--r--src/fr-command-rar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fr-command-rar.c b/src/fr-command-rar.c
index e59622d..6ef0859 100644
--- a/src/fr-command-rar.c
+++ b/src/fr-command-rar.c
@@ -675,6 +675,12 @@ fr_command_rar_handle_error (FrCommand *comm,
break;
}
+ if (strstr (line, "wrong password") != NULL)
+ {
+ error->type = FR_PROC_ERROR_ASK_PASSWORD;
+ break;
+ }
+
if (strncmp (line, "Unexpected end of archive", 25) == 0) {
/* FIXME: handle this type of errors at a higher level when the freeze is over. */
}