From e8c9900b85acc467ea38d093047e8d169f026e22 Mon Sep 17 00:00:00 2001 From: Steve Zesch Date: Sat, 17 Nov 2012 16:10:32 -0500 Subject: Can't open rar files with password protected file data and headers. --- src/fr-command-rar.c | 6 ++++++ 1 file changed, 6 insertions(+) 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. */ } -- cgit v1.2.1