diff options
author | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2016-09-08 10:41:52 +0300 |
---|---|---|
committer | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2016-09-08 21:54:20 +0300 |
commit | 0b6a05851d753c48197045079cc6e43237fc0b8b (patch) | |
tree | b604ae5121c8924e52663b804092873568d3b509 /eel | |
parent | 3caf963c2cf84c30317105d9b6247fce17581e71 (diff) | |
download | nautilus-0b6a05851d753c48197045079cc6e43237fc0b8b.tar.gz |
eel-vfs-extensions: Update filename extensions
If a file had the extensions .tar.bz or .tar.xz, the function
eel_filename_get_extension_offset would identify only .bz or .xz as
an extension.
To fix this, .xz and .bz were added among the other special cases.
https://bugzilla.gnome.org/show_bug.cgi?id=771018
Diffstat (limited to 'eel')
-rw-r--r-- | eel/eel-vfs-extensions.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eel/eel-vfs-extensions.c b/eel/eel-vfs-extensions.c index 9b5b24aa4..49e4b00a5 100644 --- a/eel/eel-vfs-extensions.c +++ b/eel/eel-vfs-extensions.c @@ -128,7 +128,9 @@ eel_filename_get_extension_offset (const char *filename) if (strcmp (end, ".gz") == 0 || strcmp (end, ".bz2") == 0 || strcmp (end, ".sit") == 0 || - strcmp (end, ".Z") == 0) + strcmp (end, ".Z") == 0 || + strcmp (end, ".bz") == 0 || + strcmp (end, ".xz") == 0) { end2 = end - 1; while (end2 > start && |