From 8be8ad7fd9caed29de99a9f8bf422f26c4ca7339 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(+) (limited to 'src') 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