diff options
-rw-r--r-- | src/fr-command-rar.c | 6 |
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. */ } |