[file-roller] can't open rar files with password protected file data and headers
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] can't open rar files with password protected file data and headers
- Date: Tue, 26 Apr 2011 14:29:18 +0000 (UTC)
commit fa04767f8f4ae22cfa1ca71bd86d8181deafd46b
Author: Paolo Bacchilega <paobac src gnome org>
Date: Tue Apr 26 16:27:28 2011 +0200
can't open rar files with password protected file data and headers
[bug #646562]
src/fr-command-rar.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/fr-command-rar.c b/src/fr-command-rar.c
index 776d679..5de4fbe 100644
--- a/src/fr-command-rar.c
+++ b/src/fr-command-rar.c
@@ -674,6 +674,11 @@ 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. */
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]