diff options
author | Steve Zesch <[email protected]> | 2012-11-17 16:10:32 -0500 |
---|---|---|
committer | Steve Zesch <[email protected]> | 2012-11-17 16:10:32 -0500 |
commit | 8be8ad7fd9caed29de99a9f8bf422f26c4ca7339 (patch) | |
tree | 45a39aa15e7e3ee2d18ecc0eca5d5655ffade43a /src | |
parent | e2061107755bdb65cd5b6bb451dc7905fa405c43 (diff) | |
download | engrampa-8be8ad7fd9caed29de99a9f8bf422f26c4ca7339.tar.bz2 engrampa-8be8ad7fd9caed29de99a9f8bf422f26c4ca7339.tar.xz |
Can't open rar files with password protected file data and headers.
Diffstat (limited to 'src')
-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. */ } |