summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-12-24 17:11:19 +0300
committermonsta <[email protected]>2015-12-24 17:11:19 +0300
commit4f65bde8fc4d4efe747d4e7fbeba1211469ed79a (patch)
treedc8abfad5559cf7eba40804babaf1e817f9afdda /src
parent7236cd8e1fa2cfbb9c0d5421147cad9deef6bb2f (diff)
downloadengrampa-4f65bde8fc4d4efe747d4e7fbeba1211469ed79a.tar.bz2
engrampa-4f65bde8fc4d4efe747d4e7fbeba1211469ed79a.tar.xz
7z: correct checking for p7zip 15.09+
from https://github.com/GNOME/file-roller/commit/ed9c3fd2 fixes https://github.com/mate-desktop/engrampa/issues/114
Diffstat (limited to 'src')
-rw-r--r--src/fr-command-7z.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
index 297ba1b..0b784f7 100644
--- a/src/fr-command-7z.c
+++ b/src/fr-command-7z.c
@@ -106,7 +106,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] == '.'))
p7z_comm->old_style = TRUE;
else
p7z_comm->old_style = FALSE;