[file-roller] Stop mis-treating p7zip 15.09 as pre-4.55 (#757793)



commit ed9c3fd29071591d3b217c5807de3d71ff7540d0
Author: Sebastian Pipping <sebastian pipping org>
Date:   Sun Dec 6 15:23:31 2015 +0100

    Stop mis-treating p7zip 15.09 as pre-4.55 (#757793)

 src/fr-command-7z.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
index fc33d4d..1befbf5 100644
--- a/src/fr-command-7z.c
+++ b/src/fr-command-7z.c
@@ -98,7 +98,7 @@ list__process_line (char     *line,
                        strncpy (version, ver_start, ver_len);
                        version[ver_len] = 0;
 
-                       if (strcmp (version, "4.55") < 0)
+                       if ((strcmp (version, "4.55") < 0) && (ver_len > 1) && (version[1] == '.'))
                                self->old_style = TRUE;
                        else
                                self->old_style = FALSE;


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