[file-roller/gnome-2-32] can't open rar files with password protected file data and headers



commit 9364410cfcda68d4850a2fee504091da31dcc7a2
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 2c42ba4..22dc705 100644
--- a/src/fr-command-rar.c
+++ b/src/fr-command-rar.c
@@ -675,6 +675,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]