[file-roller] rar: fixed unrar version detection



commit af69158b7d4800c606498184787b1fcd2d30e8d9
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Sep 9 20:22:22 2013 +0200

    rar: fixed unrar version detection

 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 850a6cf..8eb7d06 100644
--- a/src/fr-command-rar.c
+++ b/src/fr-command-rar.c
@@ -179,6 +179,11 @@ process_line (char     *line,
                        sscanf (line, "RAR %d.", &version);
                        rar_comm->rar5 = (version >= 5);
                }
+               else if (strncmp (line, "UNRAR ", 6) == 0) {
+                       int version;
+                       sscanf (line, "UNRAR %d.", &version);
+                       rar_comm->rar5 = (version >= 5);
+               }
                else if (strncmp (line, "--------", 8) == 0) {
                        rar_comm->list_started = TRUE;
                        if (! rar_comm->rar5)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]