[file-roller/gnome-3-16] Stop mis-treating p7zip 15.09 as pre-4.55 (#757793)
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller/gnome-3-16] Stop mis-treating p7zip 15.09 as pre-4.55 (#757793)
- Date: Sun, 13 Dec 2015 09:09:23 +0000 (UTC)
commit 602af901f035e5202886ed1d02c7c142cbbc290a
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]